]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drbd: destroy workqueue when drbd device was freed
authorWang ShaoBo <bobo.shaobowang@huawei.com>
Thu, 24 Nov 2022 01:58:17 +0000 (09:58 +0800)
committerJens Axboe <axboe@kernel.dk>
Thu, 24 Nov 2022 13:42:22 +0000 (06:42 -0700)
commit8692814b77ca4228a99da8a005de0acf40af6132
tree89f8393ae60c1d2e084d38af3735e9179f0a9a4d
parent6e7b854e4c1b02dba00760dfa79d8dbf6cce561e
drbd: destroy workqueue when drbd device was freed

A submitter workqueue is dynamically allocated by init_submitter()
called by drbd_create_device(), we should destroy it when this
device is not needed or destroyed.

Fixes: 113fef9e20e0 ("drbd: prepare to queue write requests on a submit worker")
Signed-off-by: Wang ShaoBo <bobo.shaobowang@huawei.com>
Link: https://lore.kernel.org/r/20221124015817.2729789-3-bobo.shaobowang@huawei.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/drbd/drbd_main.c