summaryrefslogtreecommitdiffstats
path: root/ipc/mqueue.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2015-02-02 10:44:29 +1100
committerNeilBrown <neilb@suse.de>2015-02-02 16:57:17 +1100
commitb1b02fe97f75b12ab34b2303bfd4e3526d903a58 (patch)
tree62450049509e3f8413f2e3dbe52bd1f29d747e7f /ipc/mqueue.c
parent59343cd7c4809cf7598789e1cd14563780ae4239 (diff)
downloadlinux-b1b02fe97f75b12ab34b2303bfd4e3526d903a58.tar.bz2
md/raid5: fix another livelock caused by non-aligned writes.
If a non-page-aligned write is destined for a device which is missing/faulty, we can deadlock. As the target device is missing, a read-modify-write cycle is not possible. As the write is not for a full-page, a recontruct-write cycle is not possible. This should be handled by logic in fetch_block() which notices there is a non-R5_OVERWRITE write to a missing device, and so loads all blocks. However since commit 67f455486d2ea2, that code requires STRIPE_PREREAD_ACTIVE before it will active, and those circumstances never set STRIPE_PREREAD_ACTIVE. So: in handle_stripe_dirtying, if neither rmw or rcw was possible, set STRIPE_DELAYED, which will cause STRIPE_PREREAD_ACTIVE be set after a suitable delay. Fixes: 67f455486d2ea20b2d94d6adf5b9b783d079e321 Cc: stable@vger.kernel.org (v3.16+) Reported-by: Mikulas Patocka <mpatocka@redhat.com> Tested-by: Heinz Mauelshagen <heinzm@redhat.com> Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'ipc/mqueue.c')
0 files changed, 0 insertions, 0 deletions