Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759430Ab1CDNUL (ORCPT ); Fri, 4 Mar 2011 08:20:11 -0500 Received: from mx1.fusionio.com ([64.244.102.30]:52622 "EHLO mx1.fusionio.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759282Ab1CDNUK (ORCPT ); Fri, 4 Mar 2011 08:20:10 -0500 X-ASG-Debug-ID: 1299244809-03d6a54f6104180001-xx1T2L X-Barracuda-Envelope-From: JAxboe@fusionio.com Message-ID: <4D70E705.1080309@fusionio.com> Date: Fri, 4 Mar 2011 14:20:05 +0100 From: Jens Axboe MIME-Version: 1.0 To: Shaohua Li CC: Mike Snitzer , "linux-kernel@vger.kernel.org" , "hch@infradead.org" Subject: Re: [PATCH 05/10] block: remove per-queue plugging References: <1295659049-2688-1-git-send-email-jaxboe@fusionio.com> <1295659049-2688-6-git-send-email-jaxboe@fusionio.com> <20110303221353.GA10366@redhat.com> X-ASG-Orig-Subj: Re: [PATCH 05/10] block: remove per-queue plugging In-Reply-To: Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit X-Barracuda-Connect: mail1.int.fusionio.com[10.101.1.21] X-Barracuda-Start-Time: 1299244809 X-Barracuda-URL: http://10.101.1.180:8000/cgi-mod/mark.cgi X-Barracuda-Spam-Score: 0.00 X-Barracuda-Spam-Status: No, SCORE=0.00 using per-user scores of TAG_LEVEL=1000.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=9.0 tests= X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.2.57026 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1274 Lines: 32 On 2011-03-04 14:02, Shaohua Li wrote: > 2011/3/4 Mike Snitzer : >> I'm now hitting a lockdep issue, while running a 'for-2.6.39/stack-plug' >> kernel, when I try an fsync heavy workload to a request-based mpath >> device (the kernel ultimately goes down in flames, I've yet to look at >> the crashdump I took) >> >> >> ======================================================= >> [ INFO: possible circular locking dependency detected ] >> 2.6.38-rc6-snitm+ #2 >> ------------------------------------------------------- >> ffsb/3110 is trying to acquire lock: >> (&(&q->__queue_lock)->rlock){..-...}, at: [] flush_plug_list+0xbc/0x135 >> >> but task is already holding lock: >> (&rq->lock){-.-.-.}, at: [] schedule+0x16a/0x725 >> >> which lock already depends on the new lock. > I hit this too. Can you check if attached debug patch fixes it? I'll take a look at this. It would be really nice if we could move the plug flush outside of the runqueue lock. -- Jens Axboe -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/