Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752559AbbBMK1w (ORCPT ); Fri, 13 Feb 2015 05:27:52 -0500 Received: from casper.infradead.org ([85.118.1.10]:53835 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752362AbbBMK1u (ORCPT ); Fri, 13 Feb 2015 05:27:50 -0500 Date: Fri, 13 Feb 2015 11:27:46 +0100 From: Peter Zijlstra To: NeilBrown Cc: Tony Battersby , linux-raid@vger.kernel.org, lkml , axboe@kernel.dk, Linus Torvalds Subject: Re: RAID1 might_sleep() warning on 3.19-rc7 Message-ID: <20150213102746.GO2896@worktop.programming.kicks-ass.net> References: <54D3D24E.5060303@cybernetics.com> <20150206085133.2c1ab892@notabene.brown> <20150206113930.GK23123@twins.programming.kicks-ass.net> <20150209121357.29f19d36@notabene.brown> <20150209091000.GN5029@twins.programming.kicks-ass.net> <20150210135017.7659e49c@notabene.brown> <20150210092936.GW21418@twins.programming.kicks-ass.net> <20150213162600.059fffb2@notabene.brown> <20150213083250.GN2896@worktop.programming.kicks-ass.net> <20150213194953.0368355d@notabene.brown> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150213194953.0368355d@notabene.brown> User-Agent: Mutt/1.5.22.1 (2013-10-16) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1095 Lines: 27 On Fri, Feb 13, 2015 at 07:49:53PM +1100, NeilBrown wrote: > > Like said, that will still recursive call delayacct_blkio_*() and would > > increase nr_iowait for a second time; while arguably its still the same > > one io-wait instance. > > No it doesn't. There is no "blk_flush_plug" call between the > delayacct_blkio_*() calls. Duh, clearly I needed to still wake up :/ > I've moved blk_flush_plug to the beginning of the function. > I wondered if it really make sense to call blk_flush_plug with nr_iowait > elevated and delayacct_blkio active. blk_flush_plug() could call schedule() > for non-"io" reasons and maybe that could upset stuff??? Yeah, good question that. Lemme ponder that a bit. > I don't really know. I'm happy with your version. I don't suppose anyone > else is paying attention and could give a third opinion.... :-) -- 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/