On 5/29/18 5:09 PM, kvi...@gmail.com wrote:
> @@ -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

Reply via email to