From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from psmtp.com (na3sys010amx177.postini.com [74.125.245.177]) by kanga.kvack.org (Postfix) with SMTP id 7F9CA6B13F0 for ; Tue, 31 Jan 2012 06:57:21 -0500 (EST) Date: Tue, 31 Jan 2012 06:57:16 -0500 From: Christoph Hellwig Subject: Re: [PATCH] fix readahead pipeline break caused by block plug Message-ID: <20120131115716.GA19829@infradead.org> References: <1327996780.21268.42.camel@sli10-conroe> <20120131103416.GA1661@localhost> <20120131104621.GA27003@infradead.org> <20120131105754.GA3867@localhost> <20120131113452.GA3235@infradead.org> <20120131114256.GA8796@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20120131114256.GA8796@localhost> Sender: owner-linux-mm@kvack.org List-ID: To: Wu Fengguang Cc: Christoph Hellwig , Shaohua Li , lkml , linux-mm , Andrew Morton , Jens Axboe , Herbert Poetzl , Eric Dumazet , Vivek Goyal On Tue, Jan 31, 2012 at 07:42:56PM +0800, Wu Fengguang wrote: > > 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); No. Just put it into __blockdev_direct_IO - a quick 2 minute audit of the kernel source shows that is in fact the only ->direct_IO instance which ever submits block I/O anyway. -- 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: email@kvack.org