]> git.karo-electronics.de Git - karo-tx-linux.git/commit
DM RAID: Use md_error() in place of simply setting Faulty bit
authorJonathan Brassow <jbrassow@redhat.com>
Tue, 24 Apr 2012 00:57:59 +0000 (10:57 +1000)
committerNeilBrown <neilb@suse.de>
Tue, 24 Apr 2012 00:57:59 +0000 (10:57 +1000)
commitc722100a0399e9d3b78f904c82c872fb12f2f65f
treea1af22948b72446600a5480c471b0d08816d84f0
parentf31899be4097229bb4471087049e5b108f88b4c8
DM RAID: Use md_error() in place of simply setting Faulty bit

When encountering an error while reading the superblock, call md_error.

We are currently setting the 'Faulty' bit on one of the array devices when an
error is encountered while reading the superblock of a dm-raid array.  We should
be calling md_error(), as it handles the error more completely.

Signed-off-by: Jonathan Brassow <jbrassow@redhat.com>
Signed-off-by: NeilBrown <neilb@suse.de>
drivers/md/dm-raid.c