[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <167819914263.6301.8573680638025368165.b4-ty@kernel.dk>
Date: Tue, 07 Mar 2023 07:25:42 -0700
From: Jens Axboe <axboe@...nel.dk>
To: hch@....de, jack@...e.cz, julianr@...ux.ibm.com,
yukuai3@...wei.com, Yu Kuai <yukuai1@...weicloud.com>
Cc: linux-block@...r.kernel.org, linux-kernel@...r.kernel.org,
yi.zhang@...wei.com, yangerkun@...wei.com
Subject: Re: [PATCH] block: fix wrong mode for blkdev_put() from
disk_scan_partitions()
On Tue, 07 Mar 2023 18:55:52 +0800, Yu Kuai wrote:
> If disk_scan_partitions() is called with 'FMODE_EXCL',
> blkdev_get_by_dev() will be called without 'FMODE_EXCL', however, follow
> blkdev_put() is still called with 'FMODE_EXCL', which will cause
> 'bd_holders' counter to leak.
>
> Fix the problem by using the right mode for blkdev_put().
>
> [...]
Applied, thanks!
[1/1] block: fix wrong mode for blkdev_put() from disk_scan_partitions()
commit: 428913bce1e67ccb4dae317fd0332545bf8c9233
Best regards,
--
Jens Axboe
Powered by blists - more mailing lists