Re: [PATCH] nvme: make controller 'state' sysfs attribute pollable

From: Christoph Hellwig
Date: Wed Sep 20 2017 - 10:59:38 EST

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.