Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 7ad4d4a6 authored by NeilBrown's avatar NeilBrown
Browse files

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: default avatarhank <pyu@redhat.com>
Signed-off-by: default avatarNeilBrown <neilb@suse.de>
parent fd177481
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment