]> git.baikalelectronics.ru Git - kernel.git/commit
NVMe: Call nvme_free_queue directly
authorKeith Busch <keith.busch@intel.com>
Mon, 7 Jul 2014 15:14:42 +0000 (09:14 -0600)
committerJens Axboe <axboe@fb.com>
Tue, 4 Nov 2014 20:17:08 +0000 (13:17 -0700)
commit1015e6b60a4530dfcee983871e92b2a5f8669fad
treebdf6b98c0a4e2ff46e260316ec5bc1eec6ba00a9
parent5b22079425a575d18d359c28840283a9bbe1d9ca
NVMe: Call nvme_free_queue directly

Rather than relying on call_rcu, this patch directly frees the
nvme_queue's memory after ensuring no readers exist. Some arch specific
dma_free_coherent implementations may not be called from a call_rcu's
soft interrupt context, hence the change.

Signed-off-by: Keith Busch <keith.busch@intel.com>
Reported-by: Matthew Minter <matthew_minter@xyratex.com>
Signed-off-by: Matthew Wilcox <matthew.r.wilcox@intel.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/block/nvme-core.c