]> git.baikalelectronics.ru Git - kernel.git/commit
block: don't call invalidate_partition from blk_drop_partitions
authorChristoph Hellwig <hch@lst.de>
Tue, 14 Apr 2020 07:28:59 +0000 (09:28 +0200)
committerJens Axboe <axboe@kernel.dk>
Mon, 20 Apr 2020 17:32:59 +0000 (11:32 -0600)
commit5acd93ffa36a331d9c068a8aebbdba7315d872d5
tree4395c31495eb199ae168dfed3300864a3120271b
parent7fab9b603b15306167fc93a6a1a9d02860b584e7
block: don't call invalidate_partition from blk_drop_partitions

Given that the device must not be busy, most of the calls from
invalidate_partition that are related to file system metadata are
guranteed to not happen.  Just open code the calls to sync_blockdev
and invalidate_bdev instead.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/partitions/core.c