diff options
author | Ming Lei <[email protected]> | 2018-04-12 09:16:04 -0600 |
---|---|---|
committer | Jens Axboe <[email protected]> | 2018-04-12 09:58:27 -0600 |
commit | 11d9ea6f2ca69237d35d6c55755beba3e006b106 (patch) | |
tree | 138e77ac276f5484e2c50ce30fc7449ca65348f8 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 7ec6074ff005e5f6cd2cf186a9ec7496c3db04f9 (diff) |
nvme-loop: fix kernel oops in case of unhandled command
When nvmet_req_init() fails, __nvmet_req_complete() is called
to handle the target request via .queue_response(), so
nvme_loop_queue_response() shouldn't be called again for
handling the failure.
This patch fixes this case by the following way:
- move blk_mq_start_request() before nvmet_req_init(), so
nvme_loop_queue_response() may work well to complete this
host request
- don't call nvme_cleanup_cmd() which is done in nvme_loop_complete_rq()
- don't call nvme_loop_queue_response() which is done via
.queue_response()
Signed-off-by: Ming Lei <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
[trimmed changelog]
Signed-off-by: Keith Busch <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions