]> www.infradead.org Git - users/jedix/linux-maple.git/commit
nvme: delete dev from dev_list in nvme_reset
authorChristoph Hellwig <hch@lst.de>
Fri, 2 Oct 2015 16:48:36 +0000 (18:48 +0200)
committerChuck Anderson <chuck.anderson@oracle.com>
Wed, 6 Jul 2016 23:31:58 +0000 (16:31 -0700)
commit3c7f03244736bb3dfa2df5cd0d5fe35d274164ea
treeeaa1c5359e9512a0c1ce59412863e1a62ec773f3
parent190a71dac64c92fe2d64ca015736216f93f7f0b4
nvme: delete dev from dev_list in nvme_reset

Device resets need to delete the device from the device list before
kicking of the reset an re-probe, otherwise we get the device added
to the list twice.  nvme_reset is the only side missing this deletion
at the moment, and this patch adds it.

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

Orabug: 22620486
Signed-off-by: Jason Luo <zhangqing.luo@oracle.com>
drivers/block/nvme-core.c