Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S262709AbUDLIXf (ORCPT ); Mon, 12 Apr 2004 04:23:35 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262750AbUDLIXf (ORCPT ); Mon, 12 Apr 2004 04:23:35 -0400 Received: from stingr.net ([212.193.32.15]:23518 "EHLO stingr.net") by vger.kernel.org with ESMTP id S262709AbUDLIXe (ORCPT ); Mon, 12 Apr 2004 04:23:34 -0400 Date: Mon, 12 Apr 2004 12:22:15 +0400 From: Paul P Komkoff Jr To: linux-kernel@vger.kernel.org Cc: Andrew Morton Subject: Re: 2.6.5-mm4 Message-ID: <20040412082215.GP14129@stingr.net> Mail-Followup-To: linux-kernel@vger.kernel.org, Andrew Morton References: <20040410200551.31866667.akpm@osdl.org> <20040412064605.GO14129@stingr.net> <20040412004244.0f50a7d4.akpm@osdl.org> Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline In-Reply-To: <20040412004244.0f50a7d4.akpm@osdl.org> User-Agent: Agent Darien Fawkes X-Mailer: Intel Ultra ATA Storage Driver X-RealName: Stingray Greatest Jr Organization: Department of Fish & Wildlife Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1303 Lines: 37 Replying to Andrew Morton: > I added a might_sleep() to generic_unplug_device(), because some drivers' > unplug functions can sleep. > > It appears that either the EVMS or the udm2 patch is calling > generic_unplug_device() under a lock. Probably spin_lock_irq(q->lock). can it be thisi (raid1.c): static void unplug_slaves(mddev_t *mddev) { conf_t *conf = mddev_to_conf(mddev); int i; unsigned long flags; spin_lock_irqsave(&conf->device_lock, flags); for (i=0; iraid_disks; i++) { mdk_rdev_t *rdev = conf->mirrors[i].rdev; if (rdev && !rdev->faulty) { request_queue_t *r_queue = bdev_get_queue(rdev->bdev); if (r_queue->unplug_fn) r_queue->unplug_fn(r_queue); } } spin_unlock_irqrestore(&conf->device_lock, flags); } -- Paul P 'Stingray' Komkoff Jr // http://stingr.net/key <- my pgp key This message represents the official view of the voices in my head - 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/