diff options
author | Ming Lei <ming.lei@redhat.com> | 2024-02-23 08:55:38 +0100 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2024-02-29 02:47:08 +0100 |
commit | 1221b9e982e181f1c37789c46fe5bfe32d97bec4 (patch) | |
tree | 2e8220ef7cbc9cf5c077f41f4ecdcd5d5bdb45a0 /fs/cramfs | |
parent | blk-mq: don't change nr_hw_queues and nr_maps for kdump kernel (diff) | |
download | linux-1221b9e982e181f1c37789c46fe5bfe32d97bec4.tar.xz linux-1221b9e982e181f1c37789c46fe5bfe32d97bec4.zip |
ublk: improve getting & putting ublk device
Firstly convert get_device() and put_device() into ublk_get_device()
and ublk_put_device().
Secondly annotate ublk_get_device() & ublk_put_device() as noinline
for trace, especially it is often to trigger device deletion hang
when incorrect order is used on ublkc mmap, ublkc close,
io_uring_sqe_unregister_file, ublkb close.
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Link: https://lore.kernel.org/r/20240223075539.89945-2-ming.lei@redhat.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions