Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752659AbdHOWrm (ORCPT ); Tue, 15 Aug 2017 18:47:42 -0400 Received: from mx2.suse.de ([195.135.220.15]:40632 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752031AbdHOWrl (ORCPT ); Tue, 15 Aug 2017 18:47:41 -0400 Date: Tue, 15 Aug 2017 15:47:28 -0700 From: Davidlohr Bueso To: Linus Torvalds Cc: Andi Kleen , Tim Chen , Peter Zijlstra , Ingo Molnar , Kan Liang , Andrew Morton , Johannes Weiner , Jan Kara , linux-mm , Linux Kernel Mailing List Subject: Re: [PATCH 1/2] sched/wait: Break up long wake list walk Message-ID: <20170815224728.GA1373@linux-80c1.suse> Mail-Followup-To: Linus Torvalds , Andi Kleen , Tim Chen , Peter Zijlstra , Ingo Molnar , Kan Liang , Andrew Morton , Johannes Weiner , Jan Kara , linux-mm , Linux Kernel Mailing List References: <84c7f26182b7f4723c0fe3b34ba912a9de92b8b7.1502758114.git.tim.c.chen@linux.intel.com> <20170815022743.GB28715@tassilo.jf.intel.com> <20170815031524.GC28715@tassilo.jf.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 537 Lines: 18 On Mon, 14 Aug 2017, Linus Torvalds wrote: >On Mon, Aug 14, 2017 at 8:15 PM, Andi Kleen wrote: >> But what should we do when some other (non page) wait queue runs into the >> same problem? > >Hopefully the same: root-cause it. Or you can always use wake_qs; which exists _exactly_ for the issues you are running into. Note that Linus does not want them in general wait: https://lkml.org/lkml/2017/7/7/605 ... but you can always use them on your own if you really need to (ie locks, ipc, etc). Thanks, Davidlohr