diff options
| author | Christoph Hellwig <[email protected]> | 2023-06-01 09:44:52 +0000 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2023-06-05 16:53:04 +0000 |
| commit | 0718afd47f70cf46877c39c25d06b786e1a3f36c (patch) | |
| tree | cfe87d979122314904b2f9639fcb0a62e40a028a /drivers/md/md.c | |
| parent | block: remove blk_drop_partitions (diff) | |
| download | kernel-0718afd47f70cf46877c39c25d06b786e1a3f36c.tar.gz kernel-0718afd47f70cf46877c39c25d06b786e1a3f36c.zip | |
block: introduce holder ops
Add a new blk_holder_ops structure, which is passed to blkdev_get_by_* and
installed in the block_device for exclusive claims. It will be used to
allow the block layer to call back into the user of the block device for
thing like notification of a removed device or a device resize.
Signed-off-by: Christoph Hellwig <[email protected]>
Reviewed-by: Jan Kara <[email protected]>
Acked-by: Dave Chinner <[email protected]>
Reviewed-by: Dave Chinner <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'drivers/md/md.c')
| -rw-r--r-- | drivers/md/md.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/md.c b/drivers/md/md.c index 6a559a7e89c0..fabf9c543735 100644 --- a/drivers/md/md.c +++ b/drivers/md/md.c @@ -3642,7 +3642,7 @@ static struct md_rdev *md_import_device(dev_t newdev, int super_format, int supe rdev->bdev = blkdev_get_by_dev(newdev, FMODE_READ | FMODE_WRITE | FMODE_EXCL, - super_format == -2 ? &claim_rdev : rdev); + super_format == -2 ? &claim_rdev : rdev, NULL); if (IS_ERR(rdev->bdev)) { pr_warn("md: could not open device unknown-block(%u,%u).\n", MAJOR(newdev), MINOR(newdev)); |
