From: Fengguang Wu <wfg@mail.ustc.edu.cn>
To: Jens Axboe <axboe@suse.de>
Cc: linux-kernel@vger.kernel.org, Andrew Morton <akpm@osdl.org>,
Nick Piggin <nickpiggin@yahoo.com.au>,
Lubos Lunak <l.lunak@suse.cz>,
Fengguang Wu <wfg@mail.ustc.edu.cn>
Subject: [PATCH 6/7] iosched: run elv_kick_page() on sync read
Date: Sun, 25 Jun 2006 15:10:42 +0800 [thread overview]
Message-ID: <351162246.28395@ustc.edu.cn> (raw)
Message-ID: <20060625071730.446923099@localhost.localdomain> (raw)
In-Reply-To: 20060625071036.241325936@localhost.localdomain
[-- Attachment #1: iosched-kick-page-on-sync-read.patch --]
[-- Type: text/plain, Size: 939 bytes --]
Call elv_kick_page() to notify the elevator of a pending read.
Requests of priority IOPRIO_CLASS_IDLE are ignored.
Signed-off-by: Wu Fengguang <wfg@mail.ustc.edu.cn>
---
--- linux-2.6.17-rc5-mm3.orig/block/ll_rw_blk.c
+++ linux-2.6.17-rc5-mm3/block/ll_rw_blk.c
@@ -1619,6 +1619,9 @@ static void blk_backing_dev_unplug(struc
{
request_queue_t *q = bdi->unplug_io_data;
+ if (IOPRIO_PRIO_CLASS(current->ioprio) != IOPRIO_CLASS_IDLE)
+ elv_kick_page(q, page);
+
/*
* devices don't necessarily have an ->unplug_fn defined
*/
--- linux-2.6.17-rc5-mm3.orig/fs/buffer.c
+++ linux-2.6.17-rc5-mm3/fs/buffer.c
@@ -63,8 +63,9 @@ static int sync_buffer(void *word)
smp_mb();
bd = bh->b_bdev;
- if (bd)
- blk_run_address_space(bd->bd_inode->i_mapping);
+ if (bd && bd->bd_inode && bd->bd_inode->i_mapping)
+ blk_run_backing_dev(bd->bd_inode->i_mapping->backing_dev_info,
+ bh->b_page);
io_schedule();
return 0;
}
--
next prev parent reply other threads:[~2006-06-24 15:17 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-06-25 7:10 [PATCH 0/7] [RFC] iosched: make a difference between read/readahead requests Fengguang Wu
2006-06-25 7:10 ` Fengguang Wu
2006-06-25 7:10 ` [PATCH 1/7] iosched: introduce WRITEA Fengguang Wu
2006-06-25 7:10 ` Fengguang Wu
2006-06-25 7:10 ` [PATCH 2/7] iosched: introduce parameter deadline.reada_expire Fengguang Wu
2006-06-25 7:10 ` Fengguang Wu
2006-06-25 7:10 ` [PATCH 3/7] iosched: introduce deadline_add_drq_fifo() Fengguang Wu
2006-06-25 7:10 ` Fengguang Wu
2006-06-25 7:10 ` Fengguang Wu [this message]
2006-06-25 7:10 ` [PATCH 6/7] iosched: run elv_kick_page() on sync read Fengguang Wu
-- strict thread matches above, loose matches on Subject: below --
2006-06-24 2:03 [PATCH 0/7] [RFC] iosched: make a difference between read/readahead requests Fengguang Wu
2006-06-24 2:04 ` [PATCH 6/7] iosched: run elv_kick_page() on sync read Fengguang Wu
2006-06-24 2:04 ` Fengguang Wu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=351162246.28395@ustc.edu.cn \
--to=wfg@mail.ustc.edu.cn \
--cc=akpm@osdl.org \
--cc=axboe@suse.de \
--cc=l.lunak@suse.cz \
--cc=linux-kernel@vger.kernel.org \
--cc=nickpiggin@yahoo.com.au \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.