diff options
author | Andreas Gruenbacher <agruen@linbit.com> | 2011-06-09 01:38:00 +0200 |
---|---|---|
committer | Philipp Reisner <philipp.reisner@linbit.com> | 2014-02-17 16:44:55 +0100 |
commit | d8628a86576b278575750180fc5fab652a8224ca (patch) | |
tree | a20b4bf3b7ff43e3e913ca60e78c5f9b9d71af05 /drivers/block/drbd/drbd_main.c | |
parent | a10f6b8ae6971680ead81444b48c11263abd70a1 (diff) | |
download | lwn-d8628a86576b278575750180fc5fab652a8224ca.tar.gz lwn-d8628a86576b278575750180fc5fab652a8224ca.zip |
drbd: Add struct drbd_device->resource
Signed-off-by: Andreas Gruenbacher <agruen@linbit.com>
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Diffstat (limited to 'drivers/block/drbd/drbd_main.c')
-rw-r--r-- | drivers/block/drbd/drbd_main.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/block/drbd/drbd_main.c b/drivers/block/drbd/drbd_main.c index f13d836e76a6..bf559adc21be 100644 --- a/drivers/block/drbd/drbd_main.c +++ b/drivers/block/drbd/drbd_main.c @@ -2681,6 +2681,7 @@ enum drbd_ret_code drbd_create_minor(struct drbd_connection *connection, unsigne INIT_LIST_HEAD(&device->peer_devices); list_add(&peer_device->peer_devices, &device->peer_devices); kref_get(&connection->kref); + device->resource = connection->resource; peer_device->connection = connection; peer_device->device = device; |