summaryrefslogtreecommitdiff
path: root/scripts/extract-sys-certs.pl
diff options
context:
space:
mode:
authorJan Kara <jack@suse.cz>2021-01-07 18:40:34 +0300
committerJens Axboe <axboe@kernel.dk>2021-01-26 20:22:18 +0300
commit767630c63bb23acf022adb265574996ca39a4645 (patch)
treec65326eca59d2752a65c59ca79ee95cd5cbdf2c8 /scripts/extract-sys-certs.pl
parent46bbf653a67a36989a55dbb894c8b94c5ecb2858 (diff)
downloadlinux-767630c63bb23acf022adb265574996ca39a4645.tar.xz
bdev: Do not return EBUSY if bdev discard races with write
blkdev_fallocate() tries to detect whether a discard raced with an overlapping write by calling invalidate_inode_pages2_range(). However this check can give both false negatives (when writing using direct IO or when writeback already writes out the written pagecache range) and false positives (when write is not actually overlapping but ends in the same page when blocksize < pagesize). This actually causes issues for qemu which is getting confused by EBUSY errors. Fix the problem by removing this conflicting write detection since it is inherently racy and thus of little use anyway. Reported-by: Maxim Levitsky <mlevitsk@redhat.com> CC: "Darrick J. Wong" <darrick.wong@oracle.com> Link: https://lore.kernel.org/qemu-devel/20201111153913.41840-1-mlevitsk@redhat.com Signed-off-by: Jan Kara <jack@suse.cz> Reviewed-by: Maxim Levitsky <mlevitsk@redhat.com> Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'scripts/extract-sys-certs.pl')
0 files changed, 0 insertions, 0 deletions