drbd: Add drbd_thread->resource and make drbd_thread->connection optional
authorAndreas Gruenbacher <agruen@linbit.com>
Thu, 21 Jul 2011 11:45:21 +0000 (13:45 +0200)
committerPhilipp Reisner <philipp.reisner@linbit.com>
Mon, 17 Feb 2014 15:50:48 +0000 (16:50 +0100)
commit2457b6d5ee1a9ff8a3c15ea8eaa5bc195a47d326
tree43641a0781d2b013c671c21e3a29750b00c9acd9
parent6780139c0ab96fc9c605bea33db30fc9378016b7
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>
drivers/block/drbd/drbd_int.h
drivers/block/drbd/drbd_main.c