diff options
author | 2011-12-28 19:14:23 +0200 | |
---|---|---|
committer | 2012-01-06 16:49:07 +0200 | |
commit | 361aba569f55dd159b850489a3538253afbb3973 (patch) | |
tree | e5a71f53908a67d8873f1a58ae8d83c64b2fdd7f /fs/Kconfig | |
parent | ore: Fix crash in case of an IO error. (diff) | |
download | linux-361aba569f55dd159b850489a3538253afbb3973.tar.gz linux-361aba569f55dd159b850489a3538253afbb3973.tar.bz2 linux-361aba569f55dd159b850489a3538253afbb3973.zip |
ore: fix BUG_ON, too few sgs when reading
When reading RAID5 files, in rare cases, we calculated too
few sg segments. There should be two extra for the beginning
and end partial units.
Also "too few sg segments" should not be a BUG_ON there is
all the mechanics in place to handle it, as a short read.
So just return -ENOMEM and the rest of the code will gracefully
split the IO.
[Bug in 3.2.0 Kernel]
CC: Stable Tree <stable@kernel.org>
Signed-off-by: Boaz Harrosh <bharrosh@panasas.com>
Diffstat (limited to 'fs/Kconfig')
0 files changed, 0 insertions, 0 deletions