From owner-freebsd-current@FreeBSD.ORG Fri Jul 15 06:43:23 2005 Return-Path: X-Original-To: current@freebsd.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E0AE716A41C; Fri, 15 Jul 2005 06:43:23 +0000 (GMT) (envelope-from phk@phk.freebsd.dk) Received: from haven.freebsd.dk (haven.freebsd.dk [130.225.244.222]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8812F43D48; Fri, 15 Jul 2005 06:43:23 +0000 (GMT) (envelope-from phk@phk.freebsd.dk) Received: from phk.freebsd.dk (unknown [192.168.48.2]) by haven.freebsd.dk (Postfix) with ESMTP id 8B07DBC83; Fri, 15 Jul 2005 06:43:18 +0000 (UTC) To: Luigi Rizzo From: "Poul-Henning Kamp" In-Reply-To: Your message of "Thu, 14 Jul 2005 18:13:56 PDT." <20050714181356.A58300@xorpc.icir.org> Date: Fri, 15 Jul 2005 08:43:17 +0200 Message-ID: <8462.1121409797@phk.freebsd.dk> Sender: phk@phk.freebsd.dk Cc: Robert Watson , s223560@studenti.ing.unipi.it, current@freebsd.org Subject: Re: location of bioq lock X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Jul 2005 06:43:24 -0000 In message <20050714181356.A58300@xorpc.icir.org>, Luigi Rizzo writes: >Anyways there might be a way out... >requests go from dev_strategy() The right place for this is geom_disk.c:g_disk_start() and the start routines of the drivers which do not use geom_disk. The easiest way to handle it would be to set a flag on the g_provider saying "no more", have g_down spill the requests into a side queue and when the driver is ready again, it calls some function which pulls the request out of the side queue again. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence.