Thread (2 messages) 2 messages, 2 authors, 2018-05-30

Re: [PATCH] nbd: clear DISCONNECT_REQUESTED flag once disconnection occurs.

From: Jens Axboe <axboe@kernel.dk>
Date: 2018-05-30 15:41:50

On 5/29/18 5:09 PM, kvigor@gmail.com wrote:
quoted hunk ↗ jump to hunk
@@ -937,7 +946,7 @@ static int nbd_reconnect_socket(struct nbd_device *nbd, unsigned long arg)
 		queue_work(recv_workqueue, &args->work);
 
 		atomic_inc(&config->live_connections);
-		wake_up(&config->conn_wait);
+		wake_up_all(&config->conn_wait);
 		return 0;
 	}
 	sockfd_put(sock);
Unless you're using exclusive waits, and you are not, then wake_up() is
equivalent to wake_up_all().

-- 
Jens Axboe
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help