diff options
author | Lars Ellenberg <lars.ellenberg@linbit.com> | 2015-03-24 10:40:26 +0100 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2015-11-25 09:22:02 -0700 |
commit | 39e91a60c823603d6377cc8fa0b0bf301d1966eb (patch) | |
tree | 6c8271d5bd1838d9e16e324e9d10b75c371e7293 /drivers/block/drbd/drbd_main.c | |
parent | f5ec0173b92ba88c7b38e32a7ee3dd3b1568ea50 (diff) |
drbd: use resource name in workqueue
Since kernel 3.3, we can use snprintf-style arguments
to create a workqueue.
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'drivers/block/drbd/drbd_main.c')
-rw-r--r-- | drivers/block/drbd/drbd_main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/block/drbd/drbd_main.c b/drivers/block/drbd/drbd_main.c index 938bca2df027..3a9a0f112004 100644 --- a/drivers/block/drbd/drbd_main.c +++ b/drivers/block/drbd/drbd_main.c @@ -2694,8 +2694,8 @@ static int init_submitter(struct drbd_device *device) { /* opencoded create_singlethread_workqueue(), * to be able to say "drbd%d", ..., minor */ - device->submit.wq = alloc_workqueue("drbd%u_submit", - WQ_UNBOUND | WQ_MEM_RECLAIM, 1, device->minor); + device->submit.wq = + alloc_ordered_workqueue("drbd%u_submit", WQ_MEM_RECLAIM, device->minor); if (!device->submit.wq) return -ENOMEM; |