dm mpath: skip activate_path for failed paths
authorMoger, Babu <Babu.Moger@lsi.com>
Sat, 6 Mar 2010 02:29:49 +0000 (02:29 +0000)
committerAlasdair G Kergon <agk@redhat.com>
Sat, 6 Mar 2010 02:29:49 +0000 (02:29 +0000)
commitf7b934c8127deebf4eb56fbe4a4ae0da16b6dbcd
tree75e4a78786f3a782142d9d686d53aac9204f5fc1
parent83c0d5d5388a8d45f7a45e0ec34adc52a78c81ad
dm mpath: skip activate_path for failed paths

This patch adds two minor fixes while processing device mapper path activation.

Skip failed paths while calling activate_path.  If the path is already failed
then activate_path will fail for sure. We don't have to call in that case. In
some case this might cause prolonged retries unnecessarily.

Change the misleading message if the path being activated fails with SCSI_DH_NOSYS.

Signed-off-by: Babu Moger <babu.moger@lsi.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
drivers/md/dm-mpath.c