diff options
| author | Chris Mason <mason@kernel.org> | 2026-10-28 10:42:31 -0600 |
|---|---|---|
| committer | Keith Busch <kbusch@kernel.org> | 2026-10-28 11:41:42 -0700 |
| commit | 2b646788ee24d895b8862514e12a95ce5d72d6cc (patch) | |
| tree | 45d04161fb0863a5d4b2789c9977f5a84ab7ac2e /tools/lib/python | |
| parent | 64e21d782020e267ca57765a30216c38b34f296d (diff) | |
nvmet-rdma: flush nvmet-wq on module exit
nvmet_rdma_exit() relies on ib_unregister_client() to flush nvmet-wq
through nvmet_rdma_remove_one(), but since commit a3dd7d0022c3 that
returns at once for a device no longer on device_list. The release work
of the last queue takes the device off the list in nvmet_rdma_free_dev()
and still has to drop the mutex, free the struct and return through
nvmet_rdma_release_queue_work(), so an rmmod in that window frees the
module code it's running.
Flush nvmet-wq after ib_unregister_client(). No release work can be
queued after that point.
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>
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/lib/python')
0 files changed, 0 insertions, 0 deletions
