dm mpath: add mutex to synchronize adding and flushing work
authorMike Anderson <andmike@linux.vnet.ibm.com>
Thu, 10 Dec 2009 23:52:21 +0000 (23:52 +0000)
committerAlasdair G Kergon <agk@redhat.com>
Thu, 10 Dec 2009 23:52:21 +0000 (23:52 +0000)
commit6380f26f0424034345461cabaab9a7030d905b59
treecc9fbd6e8d990bf3ee2f577ae7f842a4df1d5ef6
parentc50abeb38026ea721a812cf8a9b2fac5d3b7684b
dm mpath: add mutex to synchronize adding and flushing work

Add a mutex to allow possible creators of new work to synchronize with
flushing work queues.

Signed-off-by: Mike Anderson <andmike@linux.vnet.ibm.com>
Acked-by: Kiyoshi Ueda <k-ueda@ct.jp.nec.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
drivers/md/dm-mpath.c