raid10: include bio_end_io_list in nr_queued to prevent freeze_array hang
authorShaohua Li <shli@fb.com>
Mon, 14 Mar 2016 18:49:32 +0000 (11:49 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 12 Apr 2016 16:08:57 +0000 (09:08 -0700)
commitb82ed7dc00f3472d4a7bca472e05ed9744881bc8
tree1ef210a90e5b3d86a270ae6bb0b69fcad32eff28
parentad072f606586a70eab8fd168465a6df4c695a9e9
raid10: include bio_end_io_list in nr_queued to prevent freeze_array hang

commit 23ddba80ebe836476bb2fa1f5ef305dd1c63dc0b upstream.

This is the raid10 counterpart of the bug fixed by Nate
(raid1: include bio_end_io_list in nr_queued to prevent freeze_array hang)

Fixes: 95af587e95(md/raid10: ensure device failure recorded before write request returns)
Cc: Nate Dailey <nate.dailey@stratus.com>
Signed-off-by: Shaohua Li <shli@fb.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/md/raid10.c