]> git.kernelconcepts.de Git - karo-tx-linux.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)
commitf435c2825b4cc6453b9a1f91418cabbd6ba08cc0
treebdf6b98c0a4e2ff46e260316ec5bc1eec6ba00a9
parent2484f40780b97df1b5eb09e78ce4efaa78b21875
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