aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Gruenbacher <agruen@linbit.com>2011-06-21 07:58:18 -0400
committerPhilipp Reisner <philipp.reisner@linbit.com>2014-02-17 10:44:58 -0500
commit9693da2379cfd133a265baad948ec94f1349dece (patch)
treeeaaaf4a1edcca9cc883c1f2e4d5627848e12ecaa
parent4bc760488c1e9c65c9f6dea1ae8a7b94b9eaebe1 (diff)
drbd: conn_try_disconnect(): Use parameter instead of the global variable
Signed-off-by: Andreas Gruenbacher <agruen@linbit.com> Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
-rw-r--r--drivers/block/drbd/drbd_nl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/block/drbd/drbd_nl.c b/drivers/block/drbd/drbd_nl.c
index cbf745c7bc2f..cb241d1d4668 100644
--- a/drivers/block/drbd/drbd_nl.c
+++ b/drivers/block/drbd/drbd_nl.c
@@ -2317,7 +2317,7 @@ static enum drbd_state_rv conn_try_disconnect(struct drbd_connection *connection
2317 * The state handling only uses drbd_thread_stop_nowait(), 2317 * The state handling only uses drbd_thread_stop_nowait(),
2318 * we want to really wait here until the receiver is no more. 2318 * we want to really wait here until the receiver is no more.
2319 */ 2319 */
2320 drbd_thread_stop(&adm_ctx.connection->receiver); 2320 drbd_thread_stop(&connection->receiver);
2321 2321
2322 /* Race breaker. This additional state change request may be 2322 /* Race breaker. This additional state change request may be
2323 * necessary, if this was a forced disconnect during a receiver 2323 * necessary, if this was a forced disconnect during a receiver