Loading drivers/block/nbd.c +7 −6 Original line number Diff line number Diff line Loading @@ -119,13 +119,14 @@ static void nbd_end_request(struct nbd_device *nbd, struct request *req) */ static void sock_shutdown(struct nbd_device *nbd) { if (nbd->sock) { if (!nbd->sock) return; dev_warn(disk_to_dev(nbd->disk), "shutting down socket\n"); kernel_sock_shutdown(nbd->sock, SHUT_RDWR); nbd->sock = NULL; del_timer_sync(&nbd->timeout_timer); } } static void nbd_xmit_timeout(unsigned long arg) { Loading Loading
drivers/block/nbd.c +7 −6 Original line number Diff line number Diff line Loading @@ -119,13 +119,14 @@ static void nbd_end_request(struct nbd_device *nbd, struct request *req) */ static void sock_shutdown(struct nbd_device *nbd) { if (nbd->sock) { if (!nbd->sock) return; dev_warn(disk_to_dev(nbd->disk), "shutting down socket\n"); kernel_sock_shutdown(nbd->sock, SHUT_RDWR); nbd->sock = NULL; del_timer_sync(&nbd->timeout_timer); } } static void nbd_xmit_timeout(unsigned long arg) { Loading