From: Andreas Gruenbacher Date: Tue, 21 Jun 2011 11:58:18 +0000 (+0200) Subject: drbd: conn_try_disconnect(): Use parameter instead of the global variable X-Git-Tag: next-20140306~49^2~5^2~37 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=9693da2379cfd133a265baad948ec94f1349dece;p=karo-tx-linux.git drbd: conn_try_disconnect(): Use parameter instead of the global variable Signed-off-by: Andreas Gruenbacher Signed-off-by: Philipp Reisner --- 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 * The state handling only uses drbd_thread_stop_nowait(), * we want to really wait here until the receiver is no more. */ - drbd_thread_stop(&adm_ctx.connection->receiver); + drbd_thread_stop(&connection->receiver); /* Race breaker. This additional state change request may be * necessary, if this was a forced disconnect during a receiver