]> www.infradead.org Git - users/jedix/linux-maple.git/commit
nvme: simplify resets
authorChristoph Hellwig <hch@lst.de>
Thu, 26 Nov 2015 11:10:29 +0000 (12:10 +0100)
committerChuck Anderson <chuck.anderson@oracle.com>
Thu, 1 Jun 2017 20:40:45 +0000 (13:40 -0700)
commitaa78ebe177d849b2524b3600bed07f0a5915ce94
tree0496e2af65cabefd049d31493fff8a63f32aa268
parente6249a735d17e210d8f41431ae7387b7cef49bac
nvme: simplify resets

Don't delete the controller from dev_list before queuing a reset, instead
just check for it being reset in the polling kthread.  This allows to remove
the dev_list_lock in various places, and in addition we can simply rely on
checking the queue_work return value to see if we could reset a controller.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Keith Busch <keith.busch@intel.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
(cherry picked from commit 846cc05f95d599801f296d8599e82686ebd395f0)

Orabug: 25130845

Signed-off-by: Ashok Vairavan <ashok.vairavan@oracle.com>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/nvme/host/pci.c