summaryrefslogtreecommitdiffstats
path: root/drivers/md/md.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2010-08-07 21:17:00 +1000
committerNeilBrown <neilb@suse.de>2010-08-07 21:17:00 +1000
commit51e9ac77035a3dfcb6fc0a88a0d80b6f99b5edb1 (patch)
tree94167223c5711c47169db672a0ec0d23a36208b9 /drivers/md/md.c
parent69e51b449d383e97b1b9f890f8378c96e9e17346 (diff)
downloadlinux-51e9ac77035a3dfcb6fc0a88a0d80b6f99b5edb1.tar.bz2
md/raid10: fix deadlock with unaligned read during resync
If the 'bio_split' path in raid10-read is used while resync/recovery is happening it is possible to deadlock. Fix this be elevating ->nr_waiting for the duration of both parts of the split request. This fixes a bug that has been present since 2.6.22 but has only started manifesting recently for unknown reasons. It is suitable for and -stable since then. Reported-by: Justin Bronder <jsbronder@gentoo.org> Tested-by: Justin Bronder <jsbronder@gentoo.org> Signed-off-by: NeilBrown <neilb@suse.de> Cc: stable@kernel.org
Diffstat (limited to 'drivers/md/md.c')
0 files changed, 0 insertions, 0 deletions