[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Yg392sqFydj9p3My@infradead.org>
Date: Wed, 16 Feb 2022 23:48:42 -0800
From: Christoph Hellwig <hch@...radead.org>
To: "Wang Jianchao (Kuaishou)" <jianchao.wan9@...il.com>
Cc: Jens Axboe <axboe@...nel.dk>, hch@...radead.org,
Bart Van Assche <bvanassche@....org>,
linux-block@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] blk: do rq_qos_exit in blk_cleanup_queue
On Wed, Feb 16, 2022 at 07:32:12PM +0800, Wang Jianchao (Kuaishou) wrote:
> From: Wang Jianchao <wangjianchao@...ishou.com>
>
> When __alloc_disk_node() failed, there will not not del_gendisk()
> any more, then resource in rqos policies is leaked. Add rq_qos_exit()
> into blk_cleanup_queue(). rqos is removed from the list, so needn't
> to worry .exit is called twice.
>
> Fixes: commit 8e141f9eb803 ("block: drain file system I/O on del_gendisk")
> Suggested-by: Bart Van Assche <bart.vanassche@....com>
> Signed-off-by: Wang Jianchao <wangjianchao@...ishou.com>
Ming had a pending patch to move it into disk_release instead, which
I think is the right place.
Powered by blists - more mailing lists