public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] cfq: Remove wait_request flag when idle time is being deleted
@ 2009-12-10  5:57 Gui Jianfeng
  2009-12-10  8:38 ` Jens Axboe
  0 siblings, 1 reply; 2+ messages in thread
From: Gui Jianfeng @ 2009-12-10  5:57 UTC (permalink / raw)
  To: Jens Axboe; +Cc: linux-kernel

Hi Jens,

I post this patch a few month ago, it seems to get missing, repost again.

Remove wait_request flag when idle time is being deleted.

Signed-off-by: Gui Jianfeng <guijianfeng@cn.fujitsu.com>
---
 block/cfq-iosched.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/block/cfq-iosched.c b/block/cfq-iosched.c
index 69ecee7..96f59ae 100644
--- a/block/cfq-iosched.c
+++ b/block/cfq-iosched.c
@@ -3202,6 +3202,7 @@ cfq_rq_enqueued(struct cfq_data *cfqd, struct cfq_queue *cfqq,
 			if (blk_rq_bytes(rq) > PAGE_CACHE_SIZE ||
 			    cfqd->busy_queues > 1) {
 				del_timer(&cfqd->idle_slice_timer);
+				cfq_clear_cfqq_wait_request(cfqq);
 				__blk_run_queue(cfqd->queue);
 			} else
 				cfq_mark_cfqq_must_dispatch(cfqq);
-- 
1.5.4.rc3


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-12-10  8:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-10  5:57 [PATCH] cfq: Remove wait_request flag when idle time is being deleted Gui Jianfeng
2009-12-10  8:38 ` Jens Axboe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox