]> git.baikalelectronics.ru Git - kernel.git/commit
nvme: cleanup nvme_req_needs_retry
authorChristoph Hellwig <hch@lst.de>
Wed, 5 Apr 2017 17:18:09 +0000 (19:18 +0200)
committerJens Axboe <axboe@fb.com>
Wed, 5 Apr 2017 18:05:08 +0000 (12:05 -0600)
commite39b07b0155f79f99d0a8c86a8d229f2b7768b52
tree06f620272881a64cd8dc095515a9b951cb50b457
parent7550fb8cb20ea92bad9161a37fa1502e65c83a5b
nvme: cleanup nvme_req_needs_retry

Don't pass the status explicitly but derive it from the requeust,
and unwind the complex condition to be more readable.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/nvme/host/core.c