dm mpath: cleanup reinstate_path() et al based on code review
authorMike Snitzer <snitzer@redhat.com>
Sat, 20 Feb 2016 17:49:43 +0000 (12:49 -0500)
committerMike Snitzer <snitzer@redhat.com>
Thu, 10 Mar 2016 22:12:04 +0000 (17:12 -0500)
commitec31f3f78a0478dd486535377283151f83e0543d
tree84b2aefb81b8b1b9e53f971b0f192b929468d7ee
parent9f54cec553a84d09dc967a1798f8248cd1a6c6fc
dm mpath: cleanup reinstate_path() et al based on code review

fail_path() will print a "Failing path ..." message but reinstate_path()
doesn't print a "Reinstating path ...".  Add that message to
reinstate_path() to add symmetry and aid system debugging.

Remove reinstate_path()'s check for the path_selector providing
.reinstate_path hook.  All path selectors provide this and any future
ones must too.

activate_path() calls pg_init_done() with SCSI_DH_DEV_OFFLINED but
pg_init_done() doesn't expicitly handle it in its swicth statement.  Add
SCSI_DH_DEV_OFFLINED to the default case.

Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-mpath.c