diff options
| author | Christoph Hellwig <[email protected]> | 2023-06-01 11:44:50 +0200 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2023-06-05 10:53:04 -0600 |
| commit | eec1be4c30df73238b936fa9f3653773a6f8b15c (patch) | |
| tree | 85876754b90fb5f8ce019b1573df16739d064e87 /tools/perf/scripts/python | |
| parent | 69f90b70bdb62e1a930239d33579e04884cd0b9a (diff) | |
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 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions