Messages in this thread | | | From | "Pranay Kr. Srivastava" <> | Subject | [PATCH] Fix might sleep warning. | Date | Wed, 27 Apr 2016 20:14:03 +0300 |
| |
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
| |