]> www.infradead.org Git - users/hch/block.git/commit
block: remove the racy bd_inode->i_mapping->nrpages asserts
authorChristoph Hellwig <hch@lst.de>
Wed, 26 Jan 2022 15:21:51 +0000 (16:21 +0100)
committerChristoph Hellwig <hch@lst.de>
Wed, 26 Jan 2022 15:25:23 +0000 (16:25 +0100)
commitbec613478925a3c6e6ad5a317a7df1a73fdc3537
treecd23f29ea9e29388eb046e34f07f650e8d4902d5
parent09b69c1e6edc1359f8d9447ee469394a8ecae733
block: remove the racy bd_inode->i_mapping->nrpages asserts

Nothing prevents a file system or userspace opener of the block device
from redirtying the page right afte sync_blockdev returned.  Fortunately
data in the page cache during a block device change is mostly harmless
anyway.

Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/block/loop.c