Re: [PATCH] scsi: make 'state' device attribute pollable

2017-08-09 Thread Christoph Hellwig
On Wed, Aug 09, 2017 at 03:09:18PM +0200, Hannes Reinecke wrote: > While the 'state' attribute can (and will) change occasionally, > calling 'poll()' or 'select()' on it fails as sysfs is never > notified that the state has changed. > With this patch calling 'poll()' or 'select()' will work > prope

[PATCH] scsi: make 'state' device attribute pollable

2017-08-09 Thread Hannes Reinecke
While the 'state' attribute can (and will) change occasionally, calling 'poll()' or 'select()' on it fails as sysfs is never notified that the state has changed. With this patch calling 'poll()' or 'select()' will work properly. Signed-off-by: Hannes Reinecke --- drivers/scsi/scsi_lib.c