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)
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>

No differences found