dm raid1: flush workqueue before destruction
authorMikulas Patocka <mpatocka@redhat.com>
Thu, 13 Nov 2008 23:38:52 +0000 (23:38 +0000)
committerAlasdair G Kergon <agk@redhat.com>
Thu, 13 Nov 2008 23:38:52 +0000 (23:38 +0000)
commit18776c7316545482a02bfaa2629a2aa1afc48357
treeecd30db869eff5968921af7df8f055794ed3730f
parent4ffaf869c7780bbdfc11291e5fd4b61dde662b1c
dm raid1: flush workqueue before destruction

We queue work on keventd queue --- so this queue must be flushed in the
destructor. Otherwise, keventd could access mirror_set after it was freed.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Cc: stable@kernel.org
drivers/md/dm-raid1.c