From 2457b6d5ee1a9ff8a3c15ea8eaa5bc195a47d326 Mon Sep 17 00:00:00 2001 From: Andreas Gruenbacher Date: Thu, 21 Jul 2011 13:45:21 +0200 Subject: drbd: Add drbd_thread->resource and make drbd_thread->connection optional In the drbd_thread "infrastructure" functions, only use the resource instead of the connection. Make the connection field of drbd_thread optional. This will allow to introduce threads which are not associated with a connection. Signed-off-by: Andreas Gruenbacher Signed-off-by: Philipp Reisner --- drivers/block/drbd/drbd_int.h | 1 + 1 file changed, 1 insertion(+) (limited to 'drivers/block/drbd/drbd_int.h') diff --git a/drivers/block/drbd/drbd_int.h b/drivers/block/drbd/drbd_int.h index b3f46fb4dda3..e7093d4291f1 100644 --- a/drivers/block/drbd/drbd_int.h +++ b/drivers/block/drbd/drbd_int.h @@ -263,6 +263,7 @@ struct drbd_thread { struct completion stop; enum drbd_thread_state t_state; int (*function) (struct drbd_thread *); + struct drbd_resource *resource; struct drbd_connection *connection; int reset_cpu_mask; const char *name; -- cgit v1.2.3