• Kiyoshi Ueda's avatar
    dm mpath: hold io until all pg_inits completed · d0259bf0
    Kiyoshi Ueda authored
    m->queue_io is set to block processing I/Os, and it needs to be kept
    while pg-init, which issues multiple path activations, is in progress.
    But m->queue is cleared when a path activation completes without error
    in pg_init_done(), even while other path activations are in progress.
    That may cause undesired -EIO on paths which are not complete activation.
    
    This patch fixes that by not clearing m->queue_io until all path
    activations complete.
    
    (Before the hardware handlers were moved into the SCSI layer, pg_init
    only used one path.)
    Signed-off-by: default avatarKiyoshi Ueda <k-ueda@ct.jp.nec.com>
    Signed-off-by: default avatarJun'ichi Nomura <j-nomura@ce.jp.nec.com>
    Signed-off-by: default avatarAlasdair G Kergon <agk@redhat.com>
    d0259bf0
dm-mpath.c 38 KB