diff options
author | Ming Lei <[email protected]> | 2022-03-08 06:51:57 +0100 |
---|---|---|
committer | Jens Axboe <[email protected]> | 2022-03-08 19:40:01 -0700 |
commit | ba3e845665fbbb0252336f27200cd5cf288a3573 (patch) | |
tree | 04004f708d092b8c41ba675b733c3dd6f1b47dc9 /net/lapb/lapb_in.c | |
parent | de3d347f7b8a1a997fbc9267454ed6065068b969 (diff) |
block: move q_usage_counter release into blk_queue_release
After blk_cleanup_queue() returns, disk may not be released yet, so
probably bio may still be submitted and ->q_usage_counter may be
touched, so far this way seems safe, but not good from API's viewpoint.
Move the release q_usage_counter into blk_queue_release().
Signed-off-by: Ming Lei <[email protected]>
Reviewed-by: Bart Van Assche <[email protected]>
Signed-off-by: Christoph Hellwig <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'net/lapb/lapb_in.c')
0 files changed, 0 insertions, 0 deletions