From: Alasdair G Kergon Date: Tue, 12 Jul 2005 22:53:04 +0000 (-0700) Subject: [PATCH] device-mapper multipath: Fix pg initialisation races X-Git-Tag: v2.6.13-rc3~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c3cd4f6b275da0f594797b73f721a4185335478f;p=pandora-kernel.git [PATCH] device-mapper multipath: Fix pg initialisation races Prevent more than one priority group initialisation function from being outstanding at once. Otherwise the completion functions interfere with each other. Also, reloading the table could reference a freed pointer. Only reset queue_io in pg_init_complete if another pg_init isn't required. Skip process_queued_ios if the queue is empty so that we only trigger a pg_init if there's I/O. Signed-off-by: Lars Marowsky-Bree Signed-off-by: Alasdair G Kergon Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed