commit | 8a97712e5314aefe16b3ffb4583a34deaa49de04 | [log] [tgz] |
---|---|---|
author | Hannes Reinecke <hare@suse.de> | Fri Aug 11 08:53:47 2017 +0200 |
committer | Martin K. Petersen <martin.petersen@oracle.com> | Thu Aug 24 22:28:53 2017 -0400 |
tree | f7697a26c31ded4a2a97bac3fec36c90ce14228a | |
parent | 8cd1ec78ca15f1016f6c3c683c21b3383b5cb966 [diff] |
scsi: make 'state' device attribute pollable 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 <hare@suse.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>