Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752958AbcD2GVE (ORCPT ); Fri, 29 Apr 2016 02:21:04 -0400 Received: from mail.bmw-carit.de ([62.245.222.98]:59387 "EHLO mail.bmw-carit.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752817AbcD2GVC (ORCPT ); Fri, 29 Apr 2016 02:21:02 -0400 X-Greylist: delayed 319 seconds by postgrey-1.27 at vger.kernel.org; Fri, 29 Apr 2016 02:21:02 EDT X-CTCH-RefID: str=0001.0A0C0201.5722FC03.01A5,ss=1,re=0.000,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0 Subject: Re: [PATCH v2] sched/completion: convert completions to use simple wait queues To: , References: <1461848244-16469-1-git-send-email-wagi@monom.org> CC: "Peter Zijlstra (Intel)" , Thomas Gleixner , Sebastian Andrzej Siewior From: Daniel Wagner X-Enigmail-Draft-Status: N1110 Message-ID: <88ea5752-29c4-09e9-e22f-942201826874@bmw-carit.de> Date: Fri, 29 Apr 2016 08:14:43 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.0 MIME-Version: 1.0 In-Reply-To: <1461848244-16469-1-git-send-email-wagi@monom.org> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit X-Originating-IP: [192.168.101.1] X-ClientProxiedBy: CIT-HM8-EX01.bmw-carit.intra (10.40.100.13) To CIT-HM8-EX01.bmw-carit.intra (10.40.100.13) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1370 Lines: 22 On 04/28/2016 02:57 PM, Daniel Wagner wrote: > Only one complete_all() user could been identified so far, which happens > to be drivers/base/power/main.c. Several waiters appear when suspend > to disk or mem is executed. BTW, this is what I get when doing a 'echo "disk" > /sys/power/state' on a 4 socket E5-4610 (Ivy Bridge EP) system. swait_stat version 0.1 --------------------------------------------------------------------------------------------- class name 1 waiter 2 waiters 3 waiters 4+ waiters --------------------------------------------------------------------------------------------- [...] &x->wait#12 90 11 5 1 [] dpm_wait+0x32/0x40 20 [] __device_suspend+0x1b4/0x370 4 [] __device_suspend_late+0x74/0x210 22 [] __device_suspend_noirq+0x51/0x200 2 [] device_resume_early+0x69/0x1b0 59 [] device_resume+0x50/0x1f0 [...]