Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751896AbdF2TtH (ORCPT ); Thu, 29 Jun 2017 15:49:07 -0400 Received: from mail.kernel.org ([198.145.29.99]:54778 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751532AbdF2TtG (ORCPT ); Thu, 29 Jun 2017 15:49:06 -0400 DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 62F6C22BE2 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=mcgrof@kernel.org MIME-Version: 1.0 In-Reply-To: <20170629190854.GE3954@linux-80c1.suse> References: <20170623233702.20564-1-jakub.kicinski@netronome.com> <20170626233030.GI21846@wotan.suse.de> <20170627001534.GK21846@wotan.suse.de> <20170629190854.GE3954@linux-80c1.suse> From: "Luis R. Rodriguez" Date: Thu, 29 Jun 2017 12:48:43 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] firmware: wake all waiters To: Davidlohr Bueso , Matthew Wilcox Cc: Linus Torvalds , Thomas Gleixner , Peter Zijlstra , DanielWagnerwagi@monom.org, Boqun Feng , Marcelo Tosatti , Paul Gortmaker , Ming Lei , "Li, Yi" , "AKASHI, Takahiro" , Jakub Kicinski , Greg Kroah-Hartman , "Paul E. McKenney" , Linux Kernel Mailing List , "Eric W. Biederman" , Petr Mladek , Andrew Lutomirski , Kees Cook , David Howells , Alan Cox , "Theodore Ts'o" , oss-drivers@netronome.com Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 723 Lines: 21 On Thu, Jun 29, 2017 at 12:08 PM, Davidlohr Bueso wrote: > On Tue, 27 Jun 2017, Luis R. Rodriguez wrote: >> >> * As a side effect of this; the data structures are slimmer. >> * >> - * One would recommend using this wait queue where possible. >> + * NOTE: swait is for cases of extreme memory considerations and some >> very >> + * special realtime issues, where it saves a couple of bytes in >> structures that >> + * need close packing. As such its very special-use. Consider using >> regular >> + * waits queues from wait.h instead *first*. > > > How about the following? And do we want to make it even more *special-use* by wrapping it with #ifndef MODULE as suggested by Matthew Wilcox ? Luis