Received: by 10.223.185.116 with SMTP id b49csp8417501wrg; Fri, 2 Mar 2018 01:07:24 -0800 (PST) X-Google-Smtp-Source: AG47ELspqQ4JTeXIbCrOu5FdgQ9Lqq6mLlodo59Ct6NIqr9QAYDZEJqo5ijf5ATq0Y/wAtxXav8e X-Received: by 2002:a17:902:7282:: with SMTP id d2-v6mr4760979pll.303.1519981644623; Fri, 02 Mar 2018 01:07:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519981644; cv=none; d=google.com; s=arc-20160816; b=Ebvhw4xDkS4km5+F0IOCiI9w7BunhOBgdCJBGAa6k/0ZtR8lRwDbqCsbG9RUT7liBh dkfCT2MuS5fOUZc5OXOz2yzpG6i/jBa2RAXyEwb3PZxXTzPs8+7p3vsd4x2frQl9y+Bu rp3XcxdavHMhOsYh3WRhP2Deifvv4MPiub92BuojncPmBS9tzz+HOTXS50+4TzMPs40o VW2frE0UATpRu/P4FhhUYcLlQ/CpS73zpiWsbgmip2dfHm7jw9iO6PzO8D5Rbo8gA7m9 7G0ibfWhUJYanQPh7pcZ4dV0tLGymMLDa8W+WdH480dc7eSNxH49+kBzgxnkYBDqopH8 F37A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=AW3G4KKlLNV5B0SHkySS1s6XB8UhdNQvVam2fhPREDY=; b=qYnPsM7NUXyPCaRSuKhGNxmnBscioyqzu4VSlaVVrKWB24rz+5r76qTE1vjmLEmORj NxKVElH8SsIdxhF7+DMQY36RXBf5DAl7g8pJUl8XcPhdiZCWXmw85w9FateEiQhlkK5N c59qEbvT7lhKMLdGqog8wTpgYs8bXPZoUV4bAQ4csoBYPX7T8JBucVWeCeN+WZGF/fn7 qRcEl5Oz8ZjPUTYBsry8V0I/ds5JGc8yXvrjBTaYxTo10rbPGLSujIOCqBxAs3ozFK67 /E5ZUyj2S4mf79B7/nNbvfFujPVBVJBmwXlwtgKUOamNGYCKDzwpEodw9usQjO8OL18E 81cw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a13si3704154pgt.344.2018.03.02.01.07.09; Fri, 02 Mar 2018 01:07:24 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1425302AbeCBJF4 (ORCPT + 99 others); Fri, 2 Mar 2018 04:05:56 -0500 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:59094 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1425209AbeCBJFs (ORCPT ); Fri, 2 Mar 2018 04:05:48 -0500 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id 69272801FD; Fri, 2 Mar 2018 10:05:47 +0100 (CET) Date: Fri, 2 Mar 2018 10:05:46 +0100 From: Pavel Machek To: Ganesh Mahendran Cc: rjw@rjwysocki.net, len.brown@intel.com, gregkh@linuxfoundation.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] PM / wakeup: use seq_open() to show wakeup stats Message-ID: <20180302090546.GB30267@amd> References: <1519966860-32519-1-git-send-email-opensource.ganesh@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="f2QGlHpHGjS2mn6Y" Content-Disposition: inline In-Reply-To: <1519966860-32519-1-git-send-email-opensource.ganesh@gmail.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --f2QGlHpHGjS2mn6Y Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri 2018-03-02 13:01:00, Ganesh Mahendran wrote: > single_open() interface requires that the whole output must > fit into a single buffer. This will lead to timeout when > system memory is not in a good situation. >=20 > This patch use seq_open() to show wakeup stats. This method > need only one page, so timeout will not be observed. Can the rcu_read_unlock be delayed arbitrarily by userland code? Is that ok with RCU? Pavel =09 --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --f2QGlHpHGjS2mn6Y Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlqZE+oACgkQMOfwapXb+vJ5bgCeM/co3MWj3kAQshb7/8RKlNG+ 0tAAoJfEsFTH1kDbQDRBU/h31TIf6CQu =Ts+6 -----END PGP SIGNATURE----- --f2QGlHpHGjS2mn6Y--