drbd: allow to dequeue batches of work at a time
authorLars Ellenberg <lars.ellenberg@linbit.com>
Wed, 19 Oct 2011 09:50:57 +0000 (11:50 +0200)
committerPhilipp Reisner <philipp.reisner@linbit.com>
Thu, 8 Nov 2012 15:58:34 +0000 (16:58 +0100)
commit8c0785a5c9a0f2472aff68dc32247be01728c416
treeadb036acb283550aab1a1860bff454a86eb446d5
parentb379c41ed78e83c4443fca4dbfbc358c19e4f24c
drbd: allow to dequeue batches of work at a time

cherry-picked and adapted from drbd 9 devel branch

In 8.4, we still use drbd_queue_work_front(),
so in normal operation, we can not dequeue batches,
but only single items.

Still, followup commits will wake the worker
without explicitly queueing a work item,
so up() is replaced by a simple wake_up().

Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
drivers/block/drbd/drbd_int.h
drivers/block/drbd/drbd_main.c
drivers/block/drbd/drbd_worker.c