aboutsummaryrefslogtreecommitdiff
path: root/include/linux/stackprotector.h
diff options
context:
space:
mode:
authorWei Fang <fangwei1@huawei.com>2016-03-21 19:18:32 +0800
committerMister Oyster <oysterized@gmail.com>2017-07-04 11:50:59 +0200
commit091383d82f9a325ea0403e4a1416ef742f0f0ba5 (patch)
tree0980e39c1ebe10e62e2a528fdbde9f31790e8a59 /include/linux/stackprotector.h
parent932ad580d6714044f775f7faf58c00b00e810fec (diff)
md:raid1: fix a dead loop when read from a WriteMostly disk
commit 816b0acf3deb6d6be5d0519b286fdd4bafade905 upstream. If first_bad == this_sector when we get the WriteMostly disk in read_balance(), valid disk will be returned with zero max_sectors. It'll lead to a dead loop in make_request(), and OOM will happen because of endless allocation of struct bio. Since we can't get data from this disk in this case, so continue for another disk. Signed-off-by: Wei Fang <fangwei1@huawei.com> Signed-off-by: Shaohua Li <shli@fb.com> Cc: Julia Lawall <julia.lawall@lip6.fr> Signed-off-by: Jiri Slaby <jslaby@suse.cz> Signed-off-by: Willy Tarreau <w@1wt.eu>
Diffstat (limited to 'include/linux/stackprotector.h')
0 files changed, 0 insertions, 0 deletions