dm: use non reentrant workqueues if equivalent
authorTejun Heo <tj@kernel.org>
Thu, 13 Jan 2011 19:59:58 +0000 (19:59 +0000)
committerAlasdair G Kergon <agk@redhat.com>
Thu, 13 Jan 2011 19:59:58 +0000 (19:59 +0000)
commit9c4376de98719d2768dd919553843de34bb094a6
treec20b10e9018bb51803c535a38a04ee8b12b6d98a
parent4d4d66ab5322fa9b0f51842a76139387a40e1ce9
dm: use non reentrant workqueues if equivalent

kmirrord_wq, kcopyd_work and md->wq are created per dm instance and
serve only a single work item from the dm instance, so non-reentrant
workqueues would provide the same ordering guarantees as ordered ones
while allowing CPU affinity and use of the workqueues for other
purposes.  Switch them to non-reentrant workqueues.

Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
drivers/md/dm-kcopyd.c
drivers/md/dm-raid1.c
drivers/md/dm.c
include/linux/dm-ioctl.h