From: Kiyoshi Ueda Date: Sat, 6 Mar 2010 02:30:02 +0000 (+0000) Subject: dm mpath: hold io until all pg_inits completed X-Git-Tag: v2.6.34-rc1~24^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d0259bf0eefc503d3c9c9ccda35033c3dd3aac30;p=pandora-kernel.git dm mpath: hold io until all pg_inits completed 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: Kiyoshi Ueda Signed-off-by: Jun'ichi Nomura Signed-off-by: Alasdair G Kergon --- Reading git-diff-tree failed