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)
committerJens Axboe <axboe@fb.com>
Fri, 9 Oct 2015 16:40:36 +0000 (10:40 -0600)
commit201cf1ecdfe5ea2774cbb21d4214c98ec8b418de
tree99d0fc83686b451bc983ae1f4f4c90b5dc0a01aa
parent0a7385ad69f0f210c5cfbfd334b42423a6e05e5a
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>
drivers/block/nvme-core.c