From: Ian Campbell Subject: Re: [Xen-devel] [PATCH V6 net-next 0/5] xen-net{back, front}: Multiple transmit and receive queues Date: Fri, 14 Mar 2014 16:06:15 +0000 Message-ID: <1394813175.6442.135.camel@kazak.uk.xensource.com> References: <1393847269-6981-1-git-send-email-andrew.bennieston@citrix.com> <13310465521.20140306175259@eikelenboom.it> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Cc: "Andrew J. Bennieston" , , , , , To: Sander Eikelenboom Return-path: Received: from smtp.citrix.com ([66.165.176.89]:32170 "EHLO SMTP.CITRIX.COM" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755165AbaCNQGR (ORCPT ); Fri, 14 Mar 2014 12:06:17 -0400 In-Reply-To: <13310465521.20140306175259@eikelenboom.it> Sender: netdev-owner@vger.kernel.org List-ID: On Thu, 2014-03-06 at 17:52 +0100, Sander Eikelenboom wrote: > Hi Andrew, > > Just tried your series but i ran into this lockdep warning: In the guest (so netfront), correct? > > [ 0.932289] > [ 0.932293] ============================================= > [ 0.932297] [ INFO: possible recursive locking detected ] > [ 0.932302] 3.14.0-rc5-20140306-xennext-netnext-bennie+ #1 Not tainted > [ 0.932306] --------------------------------------------- > [ 0.932311] xenwatch/26 is trying to acquire lock: > [ 0.932315] (&(&queue->rx_lock)->rlock){+.....}, at: [] netback_changed+0xc84/0xea0 > [ 0.932328] > [ 0.932328] but task is already holding lock: > [ 0.932333] (&(&queue->rx_lock)->rlock){+.....}, at: [] netback_changed+0xc84/0xea0 > [ 0.932343] > [ 0.932343] other info that might help us debug this: > [ 0.932348] Possible unsafe locking scenario: > [ 0.932348] > [ 0.932353] CPU0 > [ 0.932355] ---- > [ 0.932358] lock(&(&queue->rx_lock)->rlock); > [ 0.932363] lock(&(&queue->rx_lock)->rlock); > [ 0.932367] > [ 0.932367] *** DEADLOCK *** > [ 0.932367] > [ 0.932372] May be due to missing lock nesting notation > [ 0.932372] > [ 0.932378] 3 locks held by xenwatch/26: > [ 0.935540] #0: (xenwatch_mutex){+.+.+.}, at: [] xenwatch_thread+0x86/0x130 > [ 0.935540] #1: (&(&queue->rx_lock)->rlock){+.....}, at: [] netback_changed+0xc84/0xea0 > [ 0.935540] #2: (&(&queue->tx_lock)->rlock){......}, at: [] netback_changed+0xc91/0xea0 > [ 0.935540] > [ 0.935540] stack backtrace: > [ 0.935540] CPU: 1 PID: 26 Comm: xenwatch Not tainted 3.14.0-rc5-20140306-xennext-netnext-bennie+ #1 > [ 0.935540] ffffffff82766230 ffff88001eac3b98 ffffffff81b83684 ffff88001e97d870 > [ 0.935540] ffffffff82766230 ffff88001eac3c68 ffffffff81115b7e 00000000000233a0 > [ 0.935540] ffffffff00000003 ffffffff82766230 ffffffff82ca7ec0 5001f47aeae10000 > [ 0.935540] Call Trace: > [ 0.935540] [] dump_stack+0x46/0x58 > [ 0.935540] [] __lock_acquire+0x86e/0x2220 > [ 0.935540] [] ? kfree+0x1ee/0x200 > [ 0.935540] [] lock_acquire+0xbd/0x150 > [ 0.935540] [] ? netback_changed+0xc84/0xea0 > [ 0.935540] [] ? mutex_unlock+0xe/0x10 > [ 0.935540] [] ? xennet_release_tx_bufs+0x104/0x110 > [ 0.935540] [] _raw_spin_lock_bh+0x3f/0x50 > [ 0.935540] [] ? netback_changed+0xc84/0xea0 > [ 0.935540] [] netback_changed+0xc84/0xea0 > [ 0.935540] [] xenbus_otherend_changed+0xb0/0xc0 > [ 0.935540] [] ? xs_watch+0x60/0x60 > [ 0.935540] [] backend_changed+0x13/0x20 > [ 0.935540] [] xenwatch_thread+0x45/0x130 > [ 0.935540] [] ? __init_waitqueue_head+0x60/0x60 > [ 0.935540] [] kthread+0xe4/0x100 > [ 0.935540] [] ? _raw_spin_unlock_irq+0x30/0x50 > [ 0.935540] [] ? __init_kthread_worker+0x70/0x70 > [ 0.935540] [] ret_from_fork+0x7c/0xb0 > [ 0.935540] [] ? __init_kthread_worker+0x70/0x70 > > > > -- > Sander >