Messages in this thread | | | From | Jens Axboe <> | Subject | Re: [PATCH -next v2] block: fix wrong mode for blkdev_get_by_dev() from disk_scan_partitions() | Date | Tue, 20 Jun 2023 07:18:23 -0600 |
| |
On Sun, 18 Jun 2023 22:04:02 +0800, Yu Kuai wrote: > After commit 2736e8eeb0cc ("block: use the holder as indication for > exclusive opens"), blkdev_get_by_dev() will warn if holder is NULL and > mode contains 'FMODE_EXCL'. > > holder from blkdev_get_by_dev() from disk_scan_partitions() is always NULL, > hence it should not use 'FMODE_EXCL', which is broben by the commit. For > consequence, WARN_ON_ONCE() will be triggered from blkdev_get_by_dev() > if user scan partitions with device opened exclusively. > > [...]
Applied, thanks!
[1/1] block: fix wrong mode for blkdev_get_by_dev() from disk_scan_partitions() commit: 985958b8584cc143555f1bd735e7ab5066c944a7
Best regards, -- Jens Axboe
| |