summaryrefslogtreecommitdiff
path: root/fs/timerfd.c
diff options
context:
space:
mode:
authorJosef Bacik <josef@redhat.com>2011-04-06 23:11:44 +0400
committerJosef Bacik <josef@redhat.com>2011-04-08 21:00:43 +0400
commit93a54bc4c28a125978cddbe2db9e347391e3522d (patch)
tree910dedd07332c4f1e25893d749fc145263b58c45 /fs/timerfd.c
parent16d299ac7446b5a75c5683a9ae11d7907d444c86 (diff)
downloadlinux-93a54bc4c28a125978cddbe2db9e347391e3522d.tar.xz
Btrfs: check for duplicate iov_base's when doing dio reads
Apparently it is ok to submit a read to an IDE device with the same target page for different offsets. This is what Windows does under qemu. The problem is under DIO we expect them to be different buffers for checksumming reasons, and so this sort of thing will result in checksum errors, when in reality the file is fine. So when reading, check to make sure that all iov bases are different, and if they aren't fall back to buffered mode, since that will work out right. Thanks, Signed-off-by: Josef Bacik <josef@redhat.com>
Diffstat (limited to 'fs/timerfd.c')
0 files changed, 0 insertions, 0 deletions