WSL2-Linux-Kernel/fs/exofs
Boaz Harrosh aad560b7f6 ore: Fix wrong math in allocation of per device BIO
At IO preparation we calculate the max pages at each device and
allocate a BIO per device of that size. The calculation was wrong
on some unaligned corner cases offset/length combination and would
make prepare return with -ENOMEM. This would be bad for pnfs-objects
that would in that case IO through MDS. And fatal for exofs were it
would fail writes with EIO.

Fix it by doing the proper math, that will work in all cases. (I
ran a test with all possible offset/length combinations this time
round).

Also when reading we do not need to allocate for the parity units
since we jump over them.

Also lower the max_io_length to take into account the parity pages
so not to allocate BIOs bigger than PAGE_SIZE

CC: Stable Kernel <stable@vger.kernel.org>
Signed-off-by: Boaz Harrosh <bharrosh@panasas.com>
2014-01-23 10:55:03 +02:00
..
BUGS
Kbuild exofs: Add SYSFS info for autologin/pNFS export 2012-05-21 12:24:01 +03:00
Kconfig
Kconfig.ore
common.h
dir.c [readdir] convert exofs 2013-06-29 12:56:34 +04:00
exofs.h exofs: Add SYSFS info for autologin/pNFS export 2012-05-21 12:24:01 +03:00
file.c
inode.c truncate: drop 'oldsize' truncate_pagecache() parameter 2013-09-12 15:38:02 -07:00
namei.c don't pass nameidata to ->create() 2012-07-14 16:34:47 +04:00
ore.c ore: Fix wrong math in allocation of per device BIO 2014-01-23 10:55:03 +02:00
ore_raid.c block: Add bio_for_each_segment_all() 2013-03-23 14:26:28 -07:00
ore_raid.h
super.c fs: Limit sys_mount to only request filesystem modules. 2013-03-03 19:36:31 -08:00
symlink.c
sys.c exofs: check for allocation failure in uri_store() 2012-08-12 21:54:44 +03:00