Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752891AbdHXRtU (ORCPT ); Thu, 24 Aug 2017 13:49:20 -0400 Received: from mga01.intel.com ([192.55.52.88]:34563 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751185AbdHXRtT (ORCPT ); Thu, 24 Aug 2017 13:49:19 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.41,422,1498546800"; d="scan'208";a="1007322143" Subject: Re: [PATCH 1/2] sched/wait: Break up long wake list walk To: Linus Torvalds Cc: "Liang, Kan" , Mel Gorman , Mel Gorman , "Kirill A. Shutemov" , Peter Zijlstra , Ingo Molnar , Andi Kleen , Andrew Morton , Johannes Weiner , Jan Kara , linux-mm , Linux Kernel Mailing List References: <20170818185455.qol3st2nynfa47yc@techsingularity.net> <20170821183234.kzennaaw2zt2rbwz@techsingularity.net> <37D7C6CF3E00A74B8858931C1DB2F07753788B58@SHSMSX103.ccr.corp.intel.com> <37D7C6CF3E00A74B8858931C1DB2F0775378A24A@SHSMSX103.ccr.corp.intel.com> <37D7C6CF3E00A74B8858931C1DB2F0775378A377@SHSMSX103.ccr.corp.intel.com> <37D7C6CF3E00A74B8858931C1DB2F0775378A8AB@SHSMSX103.ccr.corp.intel.com> <6e8b81de-e985-9222-29c5-594c6849c351@linux.intel.com> From: Tim Chen Message-ID: <85fb2a78-cbb7-dceb-12e8-7d18519c30a0@linux.intel.com> Date: Thu, 24 Aug 2017 10:49:18 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.1.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1391 Lines: 42 On 08/23/2017 04:30 PM, Linus Torvalds wrote: > On Wed, Aug 23, 2017 at 11:17 AM, Linus Torvalds > wrote: >> On Wed, Aug 23, 2017 at 8:58 AM, Tim Chen wrote: >>> >>> Will you still consider the original patch as a fail safe mechanism? >> >> I don't think we have much choice, although I would *really* want to >> get this root-caused rather than just papering over the symptoms. > > Oh well. Apparently we're not making progress on that, so I looked at > the patch again. > > Can we fix it up a bit? In particular, the "bookmark_wake_function()" > thing added no value, and definitely shouldn't have been exported. > Just use NULL instead. > > And the WAITQUEUE_WALK_BREAK_CNT thing should be internal to > __wake_up_common(), not in some common header file. Again, there's no > value in exporting it to anybody else. > > And doing > > if (curr->flags & WQ_FLAG_BOOKMARK) > > looks odd, when we just did > > unsigned flags = curr->flags; > > one line earlier, so that can be just simplified. > > So can you test that simplified version of the patch? I'm attaching my > suggested edited patch, but you may just want to do those changes > directly to your tree instead. These changes look fine. We are testing them now. Does the second patch in the series look okay to you? Thanks. Tim