nvme/core: Fix race kicking freed request_queue
authorKeith Busch <keith.busch@intel.com>
Fri, 10 Feb 2017 23:15:51 +0000 (18:15 -0500)
committerJens Axboe <axboe@fb.com>
Wed, 22 Feb 2017 20:34:00 +0000 (13:34 -0700)
commitf33447b90e96076483525b21cc4e0a8977cdd07c
tree74e19e4239a9e1b3191ea3693c17aaddc4f03c42
parent6db28eda266052f86a6b402422de61eeb7d2e351
nvme/core: Fix race kicking freed request_queue

If a namespace has already been marked dead, we don't want to kick the
request_queue again since we may have just freed it from another thread.

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