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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 5/29/18 5:09 PM, kvigor@xxxxxxxxx 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




[Index of Archives]     [Linux RAID]     [Linux SCSI]     [Linux ATA RAID]     [IDE]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Device Mapper]

  Powered by Linux