]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitde8bb6b13926627d5e545a1cd56a8c74057991ca
treec05d7b93806b46528e4007ca2bf83ecfb2ec0671
parentf1e45d757174657f98f7fac4182d48a3d8ea4c10
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