From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Zijlstra Subject: Re: [PATCH] fs-writeback: drop wb->list_lock during blk_finish_plug() Date: Mon, 28 Sep 2015 16:47:57 +0200 Message-ID: <20150928144757.GB2881@worktop.programming.kicks-ass.net> References: <20150917235647.GG8624@ret.masoncoding.com> <20150918003735.GR3902@dastard> <20150918054044.GT3902@dastard> <20150918131615.GI8624@ret.masoncoding.com> <55FC1E72.3040500@fb.com> <20150918155956.GZ3816@twins.programming.kicks-ass.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Jens Axboe , Ingo Molnar , Frederic Weisbecker , Chris Mason , Dave Chinner , Jan Kara , Josef Bacik , LKML , linux-fsdevel , Neil Brown , Christoph Hellwig , Tejun Heo To: Linus Torvalds Return-path: Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org On Fri, Sep 18, 2015 at 09:12:38AM -0700, Linus Torvalds wrote: > > So I disagree with your notion that it's a recursion flag. It is > absolutely nothing of the sort. OK, agreed. I had it classed under recursion in my head, clearly I indexed it sloppily. In any case I have a patch that kills off PREEMPT_ACTIVE entirely. I just have to clean it up, benchmark, split and write changelogs. But it should be forthcoming 'soon'. As is, it boots.. > It gets set by preemption - and, > somewhat illogically, by cond_resched(). I suspect that was done to make cond_resched() (voluntary preemption) more robust and only have a single preemption path/logic. But all that was done well before I got involved.