Thread (27 messages) 27 messages, 7 authors, 2012-02-01

Re: [PATCH] fix readahead pipeline break caused by block plug

From: Wu Fengguang <hidden>
Date: 2012-01-31 11:53:25
Also in: lkml

On Tue, Jan 31, 2012 at 06:34:52AM -0500, Christoph Hellwig wrote:
On Tue, Jan 31, 2012 at 06:57:54PM +0800, Wu Fengguang wrote:
quoted
The problem is, there are a dozen of ->direct_IO callback functions.
While there are only two ->direct_IO() callers, one for READ and
another for WRITE, which are much easier to deal with.
So what?  Better do a bit more work now and keep the damn thing
maintainable.
What if we add a wrapper function for doing

        blk_start_plug(&plug);
        ->direct_IO()
        blk_finish_plug(&plug);

Thanks,
Fengguang

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help