Re: IDE locking problem

From: Benjamin Herrenschmidt (benh_at_kernel.crashing.org)
Date: 08/03/03

  • Next message: Con Kolivas: "[PATCH] O12.2int for interactivity"
    To: Jens Axboe <axboe@suse.de>
    Date:	03 Aug 2003 12:11:54 +0200
    
    

    > > would help making sure we don't get a request sneaking in ?
    >
    > Hmm not really, there's still a chance that could happen.

    Not too familiar with BIO here, but we would need some kind of
    "dead" flag to cause a reject of any try to insert a new request
    in the queue, don't you think ?

    Then, IDE could do something like:

     - set dead flag
     - wait for all pending requests to drain (easy: insert a barrier
       in the queue and wait on it, with a hack for the barrier insertion
       to bypass the dead flag... ugh... maybe a blk_terminate_queue()
       doing all that would be helpful ?)
     - unregister blkdev
     - then tear down the queue (leaving the "empty" queue with the dead
       flag set, not just memset(...,0,...), so that any bozo keeping a
       reference to it will be rejected trying to insert request instead
       of trying to tap an uninitalized queue object

    What do you think ?

    Ben.

    -
    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/


  • Next message: Con Kolivas: "[PATCH] O12.2int for interactivity"

    Relevant Pages

    • Re: OT: load distribution algorithm
      ... The dispatcher will simply ... round robin jobs, until some queue completes a job. ... There is a global flag, ...
      (comp.lang.tcl)
    • Re: OT: load distribution algorithm
      ... and hence its queue length becomes ... I realized I could eliminate the -1 flag value ... I also arbitrarily start the roundrobin with the worker holding the ... new socket arrives, the dispatcher always makes a simple choice. ...
      (comp.lang.tcl)
    • Re: Rehnquist
      ... What about having the flag at half-mast for the hundreds dead that George Bush willfully neglected in Mississippi, Alabama, and Louisiana from Katrina? ...
      (alt.politics.bush)
    • Re: Rehnquist
      ... What about having the flag at half-mast ... > for the hundreds dead that George Bush willfully neglected in Mississippi, ...
      (alt.politics.bush)
    • Re: wave api callback mechanism
      ... > structure to "not in queue" ... I am trying to develop a waveform audio driver using UAM model. ... the callback function passed by wave audio manager using WAVEOPENDESC ... structure and just before that I also set the flag of the WAVEHDR ...
      (microsoft.public.windowsce.platbuilder)