[Nbd] [RESEND PATCH]nbd: Fix might sleep warning.
Brought to you by:
yoe
|
From: Pranay K. S. <pr...@gm...> - 2016-04-30 06:19:55
|
When an nbd request times out then the nbd_xmit_timeout tries to close the socket by taking a spin_lock over the socket. This however generates a warning on kernel_sock_shutdown. This patch fixes this issue. Pranay Kr. Srivastava (1): fix might_sleep warning on socket shutdown drivers/block/nbd.c | 85 +++++++++++++++++++++++++++++++---------------------- 1 file changed, 50 insertions(+), 35 deletions(-) -- 2.6.2 |