[PATCH V2 07/13] block: move q_usage_counter release into blk_queue_release
Christoph Hellwig
hch at lst.de
Mon Jan 24 05:09:17 PST 2022
On Sat, Jan 22, 2022 at 07:10:48PM +0800, Ming Lei wrote:
> 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 ofq_usage_counter into blk_queue_release().
Looks good,
Reviewed-by: Christoph Hellwig <hch at lst.de>
More information about the Linux-nvme
mailing list