Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755876Ab1C3L5k (ORCPT ); Wed, 30 Mar 2011 07:57:40 -0400 Received: from verein.lst.de ([213.95.11.211]:38462 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755849Ab1C3L5j (ORCPT ); Wed, 30 Mar 2011 07:57:39 -0400 Date: Wed, 30 Mar 2011 13:57:38 +0200 From: Christoph Hellwig To: Jens Axboe Cc: linux-kernel@vger.kernel.org, linux-raid@vger.kernel.org, neilb@suse.de Subject: blk_flush_plug in the MD code, was Re: [xfs-masters] linux-next: manual merge of the xfs tree with Linus' tree Message-ID: <20110330115738.GA16484@lst.de> References: <20110328122148.1b48a742.sfr@canb.auug.org.au> <20110328104753.GA27327@lst.de> <20110328105348.GA27458@lst.de> <4D9069C1.4080602@fusionio.com> <20110329200813.GA9687@lst.de> <4D93177B.50505@fusionio.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4D93177B.50505@fusionio.com> User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1129 Lines: 23 On Wed, Mar 30, 2011 at 01:43:55PM +0200, Jens Axboe wrote: > On 2011-03-29 22:08, Christoph Hellwig wrote: > > FYI, the blk_flush_plug call in ufs_truncate also seem to be almost > > certainly incorrect as it's followed by a yield. > > > > That only leaves the RAID code as remaining modular users of it, and > > I suspect it really is something that shouldn't need to be exported. > > Agree, once things have settled down we can reap the remaining and keep > it internal. In fact I think the blk_flush_plug calls in the raid1/raid10 code can simply be removed without a replacement. They are in wait_even_loops which schedule before/after the call so we do get the implicit context switch plugs there. Even more they are generally called from the make_request handler, which for MD is in the loop around __generic_make_request and thus can't actually unplug in a sensible way. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/