From: NeilBrown Date: Thu, 11 Oct 2012 02:44:30 +0000 (+1100) Subject: md/raid1: Don't release reference to device while handling read error. X-Git-Tag: v3.7-rc1~10^2~13 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7ad4d4a68a1a19f21c7b39cb3f51bf17fba6e3d0;p=pandora-kernel.git md/raid1: Don't release reference to device while handling read error. When we get a read error, we arrange for raid1d to handle it. Currently we release the reference on the device. This can result in conf->mirrors[read_disk].rdev being NULL in fix_read_error, if the device happens to get removed before the read error is handled. So instead keep the reference until the read error has been fully handled. Reported-by: hank Signed-off-by: NeilBrown --- Reading git-diff-tree failed