]> git.baikalelectronics.ru Git - kernel.git/commit
block: remove the call to __invalidate_device in check_disk_size_change
authorChristoph Hellwig <hch@lst.de>
Mon, 16 Nov 2020 14:56:52 +0000 (15:56 +0100)
committerJens Axboe <axboe@kernel.dk>
Mon, 16 Nov 2020 15:34:14 +0000 (08:34 -0700)
commit1c8e13599f2d7d273e7dbe0526b9d8c31525b0bb
treeeee30935a5fb26d5290cab43238b0f7edfd95a56
parent17cec68eae6627ff5bf0b3b048e26aa2ae2064fe
block: remove the call to __invalidate_device in check_disk_size_change

__invalidate_device without the kill_dirty parameter just invalidates
various clean entries in caches, which doesn't really help us with
anything, but can cause all kinds of horrible lock orders due to how
it calls into the file system.  The only reason this hasn't been a
major issue is because so many people use partitions, for which no
invalidation was performed anyway.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/block_dev.c