diff options
author | Andreas Gruenbacher <agruen@linbit.com> | 2011-07-21 15:45:21 +0400 |
---|---|---|
committer | Philipp Reisner <philipp.reisner@linbit.com> | 2014-02-17 19:50:48 +0400 |
commit | 2457b6d5ee1a9ff8a3c15ea8eaa5bc195a47d326 (patch) | |
tree | 43641a0781d2b013c671c21e3a29750b00c9acd9 /drivers/block/drbd/drbd_int.h | |
parent | 6780139c0ab96fc9c605bea33db30fc9378016b7 (diff) | |
download | linux-2457b6d5ee1a9ff8a3c15ea8eaa5bc195a47d326.tar.xz |
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; |