]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] device-mapper multipath: Fix pg initialisation races
authorAlasdair G Kergon <agk@redhat.com>
Tue, 12 Jul 2005 22:53:04 +0000 (15:53 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 12 Jul 2005 23:19:11 +0000 (16:19 -0700)
commit4aa169d760c5f5e4d2a19cb68b8758fa23829cd1
treef7a3f0945993b02bb94fb770f2be4b01260b3ead
parentb66618c9261feb3fb6d6eaa49b58f7f17e256cc0
[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 <lmb@suse.de>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/md/dm-mpath.c