diff options
author | Christoph Hellwig <hch@lst.de> | 2023-06-01 11:44:49 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2023-06-05 18:53:04 +0200 |
commit | 69f90b70bdb62e1a930239d33579e04884cd0b9a (patch) | |
tree | fd3b9e0b4f24710fa26b034b65088c4d7e9653e8 /block/blk.h | |
parent | block: avoid repeated work in blk_mark_disk_dead (diff) | |
download | linux-69f90b70bdb62e1a930239d33579e04884cd0b9a.tar.xz linux-69f90b70bdb62e1a930239d33579e04884cd0b9a.zip |
block: unhash the inode earlier in delete_partition
Move the call to remove_inode_hash to the beginning of delete_partition,
as we want to prevent opening a block_device that is about to be removed
ASAP.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Jan Kara <jack@suse.cz>
Acked-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Link: https://lore.kernel.org/r/20230601094459.1350643-7-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/blk.h')
0 files changed, 0 insertions, 0 deletions