diff options
author | Andreas Gruenbacher <agruen@linbit.com> | 2011-07-21 13:45:21 +0200 |
---|---|---|
committer | Philipp Reisner <philipp.reisner@linbit.com> | 2014-02-17 16:50:48 +0100 |
commit | 2457b6d5ee1a9ff8a3c15ea8eaa5bc195a47d326 (patch) | |
tree | 43641a0781d2b013c671c21e3a29750b00c9acd9 /drivers/block/drbd/drbd_int.h | |
parent | drbd: Use the right peer device (diff) | |
download | linux-2457b6d5ee1a9ff8a3c15ea8eaa5bc195a47d326.tar.xz linux-2457b6d5ee1a9ff8a3c15ea8eaa5bc195a47d326.zip |
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 <agruen@linbit.com>
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Diffstat (limited to 'drivers/block/drbd/drbd_int.h')
-rw-r--r-- | drivers/block/drbd/drbd_int.h | 1 |
1 files changed, 1 insertions, 0 deletions
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; |