Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9693da23 authored by Andreas Gruenbacher's avatar Andreas Gruenbacher Committed by Philipp Reisner
Browse files

drbd: conn_try_disconnect(): Use parameter instead of the global variable

parent 4bc76048
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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