]> git.baikalelectronics.ru Git - kernel.git/commit
nvmet-rdma: drain the queue-pair just before freeing it
authorSagi Grimberg <sagi@grimberg.me>
Sun, 6 Nov 2016 09:03:59 +0000 (11:03 +0200)
committerSagi Grimberg <sagi@grimberg.me>
Mon, 14 Nov 2016 00:08:53 +0000 (02:08 +0200)
commit603709e84f6f4400e848c2fe9282c7258f676630
tree18cc13ffb25ab02c05f50a09f2b4d63fff77144a
parent2ca3be57d60c4126c1e22037d03ba41c7f2b75e7
nvmet-rdma: drain the queue-pair just before freeing it

draining the qp right after disconnect might not suffice because
the nvmet sq is not fully drained (in nvmet_sq_destroy) and we might
see completions after the drain. Instead, drain right before the
qp destroy which comes after the sq destruction and we can be sure
that no posts come after the drain.

Tested-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
drivers/nvme/target/rdma.c