From mboxrd@z Thu Jan 1 00:00:00 1970 From: hch@lst.de (Christoph Hellwig) Date: Wed, 20 Sep 2017 16:59:31 +0200 Subject: [PATCH] nvme: make controller 'state' sysfs attribute pollable In-Reply-To: <20170920104032.14014-1-jthumshirn@suse.de> References: <20170920104032.14014-1-jthumshirn@suse.de> Message-ID: <20170920145931.GA5208@lst.de> On Wed, Sep 20, 2017@12:40:32PM +0200, Johannes Thumshirn wrote: > Notify sysfs about changes of a nvme controller so user-space can watch the > file via poll() or select() in order to react to a state change. Userspace has no business polling for the state. From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751871AbdITO7e (ORCPT ); Wed, 20 Sep 2017 10:59:34 -0400 Received: from verein.lst.de ([213.95.11.211]:42742 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751581AbdITO7d (ORCPT ); Wed, 20 Sep 2017 10:59:33 -0400 Date: Wed, 20 Sep 2017 16:59:31 +0200 From: Christoph Hellwig To: Johannes Thumshirn Cc: Christoph Hellwig , Sagi Grimberg , Keith Busch , Hannes Reinecke , Linux NVMe Mailinglist , Linux Kernel Mailinglist Subject: Re: [PATCH] nvme: make controller 'state' sysfs attribute pollable Message-ID: <20170920145931.GA5208@lst.de> References: <20170920104032.14014-1-jthumshirn@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170920104032.14014-1-jthumshirn@suse.de> User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 20, 2017 at 12:40:32PM +0200, Johannes Thumshirn wrote: > Notify sysfs about changes of a nvme controller so user-space can watch the > file via poll() or select() in order to react to a state change. Userspace has no business polling for the state.