aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/block/drbd/drbd_req.h
diff options
context:
space:
mode:
authorAndreas Gruenbacher <agruen@linbit.com>2011-07-28 09:27:51 -0400
committerPhilipp Reisner <philipp.reisner@linbit.com>2014-02-17 10:50:39 -0500
commit84b8c06b6591e73250e6ab4834a02a86c8994b91 (patch)
treeef2be94ac7b57c1042560a9a39d8c84550803b85 /drivers/block/drbd/drbd_req.h
parent8682eae9b4b26d54b9eeac8e17c534197e6d8744 (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>
Diffstat (limited to 'drivers/block/drbd/drbd_req.h')
-rw-r--r--drivers/block/drbd/drbd_req.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/block/drbd/drbd_req.h b/drivers/block/drbd/drbd_req.h
index 5ce6dc505751..c684c963538e 100644
--- a/drivers/block/drbd/drbd_req.h
+++ b/drivers/block/drbd/drbd_req.h
@@ -294,7 +294,7 @@ extern void drbd_restart_request(struct drbd_request *req);
294 * outside the spinlock, e.g. when walking some list on cleanup. */ 294 * outside the spinlock, e.g. when walking some list on cleanup. */
295static inline int _req_mod(struct drbd_request *req, enum drbd_req_event what) 295static inline int _req_mod(struct drbd_request *req, enum drbd_req_event what)
296{ 296{
297 struct drbd_device *device = req->w.device; 297 struct drbd_device *device = req->device;
298 struct bio_and_error m; 298 struct bio_and_error m;
299 int rv; 299 int rv;
300 300
@@ -314,7 +314,7 @@ static inline int req_mod(struct drbd_request *req,
314 enum drbd_req_event what) 314 enum drbd_req_event what)
315{ 315{
316 unsigned long flags; 316 unsigned long flags;
317 struct drbd_device *device = req->w.device; 317 struct drbd_device *device = req->device;
318 struct bio_and_error m; 318 struct bio_and_error m;
319 int rv; 319 int rv;
320 320