[PATVH V2 0/3] nvmet: passthru fixes
Chaitanya Kulkarni
chaitanya.kulkarni at wdc.com
Fri Aug 7 15:30:23 EDT 2020
Hi,
This is a small patch-series that fixes a bug in the passthru
submission path and makes the direct call to blk_mq_free_request().
First patch is prep patch to have labels for each action in the
nvnet_execute_passthru_cmd(), second patch fixes the actual oops,
third patch call blk_mq_free_request() directly.
Regards,
Chaitanya
* Changes from V1:-
-------------------
1. Don't use fail_XXX and be consistent with out_XXX_action as
most of the target code labels.
2. Add a out_put_ns label as a prep patch to have proper error
path handling for each action in passthru cmd setup.
3. Add a out_put_req label for blk_put_request() call and move this
call to first in the error handling code path. Along with the
reported but this also fixes potential Oops if nvme_find_get_ns()
fails in the original code.
4. Add reviewers tag for the blk_mq_free_request() patch.
Chaitanya Kulkarni (3):
nvmet: add ns tear down label for pt-cmd handling
nvmet: fix oops in pt cmd execution
nvmet: call blk_mq_free_request() directly
drivers/nvme/target/passthru.c | 17 +++++++++--------
1 file changed, 9 insertions(+), 8 deletions(-)
--
2.22.1
More information about the Linux-nvme
mailing list