Re: location of bioq lock

From: Poul-Henning Kamp <phk_at_phk.freebsd.dk>
Date: Fri, 15 Jul 2005 08:43:17 +0200
In message <20050714181356.A58300_at_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_at_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.
Received on Fri Jul 15 2005 - 04:43:23 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:38 UTC