nvmet: confirm sq percpu has scheduled and switched to atomic
authorSagi Grimberg <sagi@grimberg.me>
Mon, 6 Mar 2017 16:46:20 +0000 (18:46 +0200)
committerSagi Grimberg <sagi@grimberg.me>
Thu, 16 Mar 2017 16:41:21 +0000 (18:41 +0200)
commitd11ea004a458b982e19b188c386e25a9b66ec446
treee6923e93f43067bd06b9e353fad36d9a535ec313
parente4c5d3762e2d6d274bd1cc948c47063becfa2103
nvmet: confirm sq percpu has scheduled and switched to atomic

percpu_ref_kill is not enough to prevent subsequent
percpu_ref_tryget_live from failing. Hence call
perfcpu_ref_kill_confirm to make it safe.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
drivers/nvme/target/core.c
drivers/nvme/target/nvmet.h