Re: location of bioq lock

From: Poul-Henning Kamp (phk_at_phk.freebsd.dk)
Date: 07/15/05

  • Next message: Scott Long: "Re: location of bioq lock"
    To: Luigi Rizzo <rizzo@icir.org>
    Date: Fri, 15 Jul 2005 08:43:17 +0200
    
    

    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.
    _______________________________________________
    freebsd-current@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-current
    To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
    

  • Next message: Scott Long: "Re: location of bioq lock"

    Relevant Pages

    • Re: [BUG] pnpbios breaks floppy support
      ... But it requests 0x3f2-0x3f5 and 0x3f7. ... the core requests resources based on the BAR values, ... and the drivers request the actual resources they need. ... goto cleanup1; ...
      (Linux-Kernel)
    • Re: [RFC] breakage in bsg
      ... get all requests with NULL ->rq_disk. ... That's pretty much by design since we need to allow bsg to be used on ... Since drivers have to ... that applies to all openers. ...
      (Linux-Kernel)
    • Broken PM semantics (WAS: PATCH: Shutdown IDE before powering off).
      ... it should use the same mecanism as the PM requests... ... drivers in favor of a "state" selector for PM. ... We should get rid of this assumption that we are passing a D-type ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [PATCH] mmc: Add new via-sdmmc host controller driver
      ... Looking at other drivers, imxmmc seems to get this wrong, too. ... to kill ongoing requests or not? ... Normally the requests will eventually be completed by interrupts coming ... Make sure your server uses encryption ...
      (Linux-Kernel)
    • Re: int 0x13 utility
      ... But is this a DOS or a BIOS level driver? ... But I don't know whether DOS can have it's own drivers to control HDs. ... Only read or write requests are handled. ...
      (comp.lang.asm.x86)