diff options
| author | Christian Brauner <[email protected]> | 2024-01-23 13:26:20 +0000 |
|---|---|---|
| committer | Christian Brauner <[email protected]> | 2024-02-25 11:05:22 +0000 |
| commit | 190f676afa00d07082db170400aaa2cd4de0933f (patch) | |
| tree | aef366b9461ee08aa099acb66644f9cb5aef70d2 /fs/btrfs/dev-replace.c | |
| parent | block/ioctl: port blkdev_bszset() to file (diff) | |
| download | kernel-190f676afa00d07082db170400aaa2cd4de0933f.tar.gz kernel-190f676afa00d07082db170400aaa2cd4de0933f.zip | |
block/genhd: port disk_scan_partitions() to file
This may run from a kernel thread via device_add_disk(). So this could
also use __fput_sync() if we were worried about EBUSY. But when it is
called from a kernel thread it's always BLK_OPEN_READ so EBUSY can't
really happen even if we do BLK_OPEN_RESTRICT_WRITES or BLK_OPEN_EXCL.
Otherwise it's called from an ioctl on the block device which is only
called from userspace and can rely on task work.
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: Christoph Hellwig <[email protected]>
Reviewed-by: Jan Kara <[email protected]>
Signed-off-by: Christian Brauner <[email protected]>
Diffstat (limited to 'fs/btrfs/dev-replace.c')
0 files changed, 0 insertions, 0 deletions
