Re: Block: Prevent busy looping

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Elias Oltmanns <eo@...>
Cc: <linux-kernel@...>, <stable@...>
Date: Wednesday, April 16, 2008 - 12:31 pm

On Wed, Apr 16 2008, Elias Oltmanns wrote:

If you call blk_start_queue() and blk_run_queue(), you better mean it.
There should be no delay. The only reason it does blk_plug_device() is
so that the work queue function will actually do some work. In the newer
kernels we just do:

        set_bit(QUEUE_FLAG_PLUGGED, &q->queue_flags);
        kblockd_schedule_work(q, &q->unplug_work);

instead, which is much better.

-- 
Jens Axboe

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Block: Prevent busy looping, Elias Oltmanns, (Wed Apr 16, 11:37 am)
Re: Block: Prevent busy looping, Jens Axboe, (Wed Apr 16, 12:31 pm)
Re: Block: Prevent busy looping, Elias Oltmanns, (Wed Apr 16, 6:24 pm)
Re: Block: Prevent busy looping, Jens Axboe, (Thu Apr 17, 3:13 am)
Re: Block: Prevent busy looping, Jens Axboe, (Wed Apr 16, 12:42 pm)