drbd: Create a dedicated struct drbd_device_work
authorAndreas Gruenbacher <agruen@linbit.com>
Thu, 28 Jul 2011 13:27:51 +0000 (15:27 +0200)
committerPhilipp Reisner <philipp.reisner@linbit.com>
Mon, 17 Feb 2014 15:50:39 +0000 (16:50 +0100)
commit84b8c06b6591e73250e6ab4834a02a86c8994b91
treeef2be94ac7b57c1042560a9a39d8c84550803b85
parent8682eae9b4b26d54b9eeac8e17c534197e6d8744
drbd: Create a dedicated struct drbd_device_work

drbd_device_work is a work item that has a reference to a device,
while drbd_work is a more generic work item that does not carry
a reference to a device.

All callbacks get a pointer to a drbd_work instance, those callbacks
that expect a drbd_device_work use the container_of macro to get it.

Signed-off-by: Andreas Gruenbacher <agruen@linbit.com>
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
drivers/block/drbd/drbd_actlog.c
drivers/block/drbd/drbd_int.h
drivers/block/drbd/drbd_main.c
drivers/block/drbd/drbd_receiver.c
drivers/block/drbd/drbd_req.c
drivers/block/drbd/drbd_req.h
drivers/block/drbd/drbd_state.c
drivers/block/drbd/drbd_worker.c