aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/dev-replace.c
diff options
context:
space:
mode:
authorChristoph Hellwig <[email protected]>2023-06-08 11:02:29 +0000
committerJens Axboe <[email protected]>2023-06-12 14:04:03 +0000
commit9d1c92872e7082f100f629a58b32fa0214aa1aec (patch)
tree5674b55326a5a01ae2e19ae3839b099968fc1a54 /fs/btrfs/dev-replace.c
parentblock/rnbd-srv: make process_msg_sess_info returns void (diff)
downloadkernel-9d1c92872e7082f100f629a58b32fa0214aa1aec.tar.gz
kernel-9d1c92872e7082f100f629a58b32fa0214aa1aec.zip
block: also call ->open for incremental partition opens
For whole devices ->open is called for each open, but for partitions it is only called on the first open of a partition, e.g.: open("/dev/vdb", ...) open("/dev/vdb", ...) - 2 call to ->open open("/dev/vdb1", ...) open("/dev/vdb", ...) - 2 call to ->open open("/dev/vdb", ...) open("/dev/vdb", ...) - just open call to ->open This is problematic as various block drivers look at open flags and might not do all the required setup if the earlier open was with an odd flag like O_NDELAY or the magic 3 ioctl-only open mode. Signed-off-by: Christoph Hellwig <[email protected]> Reviewed-by: Phillip Potter <[email protected]> Reviewed-by: Hannes Reinecke <[email protected]> Acked-by: Christian Brauner <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'fs/btrfs/dev-replace.c')
0 files changed, 0 insertions, 0 deletions