diff options
| author | Christoph Hellwig <[email protected]> | 2023-06-01 09:44:50 +0000 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2023-06-05 16:53:04 +0000 |
| commit | eec1be4c30df73238b936fa9f3653773a6f8b15c (patch) | |
| tree | 85876754b90fb5f8ce019b1573df16739d064e87 /fs/btrfs/dev-replace.c | |
| parent | block: unhash the inode earlier in delete_partition (diff) | |
| download | kernel-eec1be4c30df73238b936fa9f3653773a6f8b15c.tar.gz kernel-eec1be4c30df73238b936fa9f3653773a6f8b15c.zip | |
block: delete partitions later in del_gendisk
Delay dropping the block_devices for partitions in del_gendisk until
after the call to blk_mark_disk_dead, so that we can implementat
notification of removed devices in blk_mark_disk_dead.
This requires splitting a lower-level drop_partition helper out of
delete_partition and using that from del_gendisk, while having a
common loop for the whole device and partitions that calls
remove_inode_hash, fsync_bdev and __invalidate_device before the
call to blk_mark_disk_dead.
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 'fs/btrfs/dev-replace.c')
0 files changed, 0 insertions, 0 deletions
