Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753301AbcDORI3 (ORCPT ); Fri, 15 Apr 2016 13:08:29 -0400 Received: from 78-80-28-91.tmcz.cz ([78.80.28.91]:54399 "EHLO leontynka.twibright.com" rhost-flags-OK-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1752631AbcDORIY (ORCPT ); Fri, 15 Apr 2016 13:08:24 -0400 X-Greylist: delayed 2256 seconds by postgrey-1.27 at vger.kernel.org; Fri, 15 Apr 2016 13:08:24 EDT Date: Fri, 15 Apr 2016 18:30:32 +0200 (CEST) From: Mikulas Patocka X-X-Sender: mikulas@leontynka To: Markus Pargmann cc: Oleg Nesterov , Christoph Hellwig , nbd-general@lists.sourceforge.net, linux-kernel@vger.kernel.org Subject: Warning when unloading network block device Message-ID: User-Agent: Alpine 2.02 (DEB 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1775 Lines: 40 Hi The patch 23272a6754b81ff6503e09c743bb4ceeeab39997 (nbd: Remove signal usage) triggers a warning in nbd when the network block device is unloaded - WARN_ON_ONCE(in_irq() || irqs_disabled()) in the function __local_bh_enable_ip. The reason for the warning is that the function kernel_sock_shutdown is called with interrupts disabled. block nbd0: NBD_DISCONNECT block nbd0: shutting down socket ------------[ cut here ]------------ WARNING: CPU: 10 PID: 11939 at kernel/softirq.c:150 __local_bh_enable_ip+0x66/0x90 Call Trace: [] ? dump_stack+0x46/0x63 [] ? __warn+0xe7/0x100 [] ? __local_bh_enable_ip+0x66/0x90 [] ? inet_shutdown+0x3f/0x120 [] ? sock_shutdown+0x40/0x80 [nbd] [] ? __nbd_ioctl+0x5b8/0xa40 [nbd] [] ? soft_cursor+0x169/0x1e6 [softcursor] [] ? bit_cursor+0x59d/0x5d0 [bitblit] [] ? cursor_timer_handler+0x11/0x40 [fbcon] [] ? up+0xd/0x50 [] ? console_unlock+0x216/0x580 [] ? remove_wait_queue+0x18/0x60 [] ? n_tty_write+0x24a/0x460 [] ? security_capable+0x3c/0x50 [] ? nbd_ioctl+0x67/0x99 [nbd] [] ? blkdev_ioctl+0x649/0xa70 [] ? __vfs_write+0x1e/0xe0 [] ? dput+0x42/0x2b0 [] ? block_ioctl+0x34/0x40 [] ? do_vfs_ioctl+0x96/0x5b0 [] ? vfs_write+0x131/0x190 [] ? SyS_ioctl+0x91/0xa0 [] ? entry_SYSCALL_64_fastpath+0x17/0x93 ---[ end trace 1956420c2e5f102b ]--- block nbd0: Receive control failed (result -32) Mikulas