lkml.org 
[lkml]   [2011]   [Mar]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] block: eliminate ELEVATOR_INSERT_REQUEUE
On 2011-03-30 13:20, Tejun Heo wrote:
> Hello, Jens.
>
> On Wed, Mar 30, 2011 at 12:16:13PM +0200, Jens Axboe wrote:
>> @@ -261,7 +261,7 @@ static bool blk_kick_flush(struct request_queue *q)
>> q->flush_rq.end_io = flush_end_io;
>>
>> q->flush_pending_idx ^= 1;
>> - elv_insert(q, &q->flush_rq, ELEVATOR_INSERT_REQUEUE);
>> + __elv_add_request(q, &q->flush_rq, ELEVATOR_INSERT_FLUSH);
>
> Shouldn't this be list_add_tail(&rq->queuelist, &q->queue_head)?
> __elv_add_request(FLUSH) calls back into blk_insert_flush() which
> decomposes the flush request from FS into flush sequence.
> blk_kick_flush() is used to insert the decomposed sequence requests
> into the dispatch queue.

Mid-air collision, I just sent that addon out to Sergey who tested. Yes
of course it should be a regular list_add, the above is a braino.

--
Jens Axboe



\
 
 \ /
  Last update: 2011-03-30 13:25    [W:0.154 / U:0.236 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site