diff options
| author | Chris Mason <mason@kernel.org> | 2026-10-28 10:42:28 -0600 |
|---|---|---|
| committer | Keith Busch <kbusch@kernel.org> | 2026-11-03 14:20:22 -0800 |
| commit | 86ae3841aea4e29d7ac08d5614ca3823dc8dfbc9 (patch) | |
| tree | d00c7a51bd5deb18803aa3b6bd469edaec1c466f /tools/perf/scripts/python/export-to-postgresql.py | |
| parent | a029f1b2fb13e6ac6e1c2f27fba1d80b6e7cac51 (diff) | |
nvmet-rdma: take a device off the list last
nvmet_rdma_remove_one() disconnects the queues of a device and flushes
nvmet-wq, but since commit a3dd7d0022c3 it returns right away if the
device isn't on device_list. nvmet_rdma_free_dev(), run by the release
work of the last queue, takes the device off that list first and frees
the SRQs and the PD afterwards. A device removal in between finds
nothing on the list, returns, and the RDMA core frees the device under
ib_dealloc_pd().
Free the SRQs and the PD first and unlist the device last, so the
remove callback finds it and its flush waits for the release work.
Fixes: a3dd7d0022c3 ("nvmet-rdma: Don't flush system_wq by default during remove_one")
Cc: Christoph Hellwig <hch@lst.de>
Cc: Sagi Grimberg <sagi@grimberg.me>
Cc: Chaitanya Kulkarni <kch@nvidia.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Chris Mason <mason@kernel.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Keith Busch <kbusch@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions
