]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: make 'state' device attribute pollable
authorHannes Reinecke <hare@suse.de>
Fri, 11 Aug 2017 06:53:47 +0000 (08:53 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 25 Aug 2017 02:28:53 +0000 (22:28 -0400)
commit35f884217d122610067faa3711491bfcab62bacd
treef7697a26c31ded4a2a97bac3fec36c90ce14228a
parentb5b71509411227776f5006e55ef45e346749be92
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>
drivers/scsi/scsi_lib.c
drivers/scsi/scsi_transport_srp.c