drbd: Add struct drbd_resource
authorAndreas Gruenbacher <agruen@linbit.com>
Wed, 8 Jun 2011 20:17:38 +0000 (22:17 +0200)
committerPhilipp Reisner <philipp.reisner@linbit.com>
Mon, 17 Feb 2014 15:44:53 +0000 (16:44 +0100)
commit77c556f663b7ac066268c94c18670ce93dec60c0
treec05d7b93806b46528e4007ca2bf83ecfb2ec0671
parent05a10ec7900dbdba008a24bf56b3490c4b568d2c
drbd: Add struct drbd_resource

In a first step, each resource has exactly one connection, and both objects are
allocated at the same time.  The final result will be one resource and zero or
more connections.

Only allow to delete a resource if all its connections are C_STANDALONE.
Stop the worker threads of all connections early enough.

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
drivers/block/drbd/drbd_nl.c