Philipp Reisner c200d98687 drbd: Fix resource role for newly created resources in events2
The conn_higest_role() (a terribly misnamed function) returns
the role of the resource. It returned R_UNKNOWN as long as the
resource has not a single device.

Resources without devices are short living objects.

But it matters for the NOTIFY_CREATE netwlink message. It makes
a lot more sense to report R_SECONDARY for the newly created
resource than R_UNKNOWN.

I reviewd all call sites of conn_highest_role(), that change
does not matter for the other call sites.

Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2017-08-29 15:34:44 -06:00
..
2017-02-22 11:54:49 -07:00
2017-07-06 12:23:51 -06:00
2017-02-21 11:51:42 -08:00
2017-08-23 08:54:02 -06:00
2017-06-08 08:40:00 -06:00
2017-04-19 09:10:51 -06:00
2017-08-28 15:21:27 -06:00
2017-02-20 12:16:15 +01:00
2017-08-18 08:45:29 -06:00
2009-03-26 21:15:27 +01:00
2017-08-18 08:36:58 -06:00