dm path selector: Avoid that device removal triggers an infinite loop

If pg_init_retries is set and a request is queued against a
multipath device with all underlying block devices in the "dying"
state then an infinite loop is triggered because activate_path()
never succeeds and hence never calls pg_init_done(). Fix this by
making ql_select_path() skip dying paths.

Signed-off-by: Bart Van Assche <>
Signed-off-by: Mike Snitzer <>
1 file changed