From: Hannes Reinecke Subject: Reattach device handler for multipath devices References: bnc#435688 Patch-mainline: not yet The multipath daemon might have specified a different device_handler than the one a device is attached to by default. So we should try to re-attach with the user-specified device_handler and only return an error if that fails. And we should _not_ detach existing hardware handlers. This will set the path to failed during failover. Signed-off-by: Hannes Reinecke list); - if (m->hw_handler_name) - scsi_dh_detach(bdev_get_queue(pgpath->path.dev->bdev)); dm_put_device(ti, pgpath->path.dev); free_pgpath(pgpath); }