commit | 84b8c06b6591e73250e6ab4834a02a86c8994b91 | [log] [tgz] |
---|---|---|
author | Andreas Gruenbacher <agruen@linbit.com> | Thu Jul 28 15:27:51 2011 +0200 |
committer | Philipp Reisner <philipp.reisner@linbit.com> | Mon Feb 17 16:50:39 2014 +0100 |
tree | ef2be94ac7b57c1042560a9a39d8c84550803b85 | |
parent | 8682eae9b4b26d54b9eeac8e17c534197e6d8744 [diff] |
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>