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)
committerJens Axboe <axboe@fb.com>
Tue, 4 Apr 2017 15:48:23 +0000 (09:48 -0600)
commit427242ce99e43208188f843eed2739d8a99cc967
tree3d4323de943fa306b0a03d72345971ee11a3b521
parent6ecda70ea9c1bf37d2abdcf52dfe06d023276173
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>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/nvme/target/core.c
drivers/nvme/target/nvmet.h