[PATCH 1/3] scsi_sysfs: Implement 'is_visible' callback

2014-02-13 Thread Hannes Reinecke
Instead of modifying attributes after the device has been created we should be using the 'is_visible' callback to avoid races. Signed-off-by: Hannes Reinecke Reviewed-by: Christoph Hellwig --- drivers/scsi/scsi_sysfs.c | 184 +++--- 1 file changed, 93 ins

[PATCH 1/3] scsi_sysfs: Implement 'is_visible' callback

2014-02-13 Thread Hannes Reinecke
Instead of modifying attributes after the device has been created we should be using the 'is_visible' callback to avoid races. Signed-off-by: Hannes Reinecke Reviewed-by: Christoph Hellwig --- drivers/scsi/scsi_sysfs.c | 184 +++--- 1 file changed, 93 ins

[PATCH 1/3] scsi_sysfs: Implement 'is_visible' callback

2014-02-12 Thread Hannes Reinecke
Instead of modifying attributes after the device has been created we should be using the 'is_visible' callback to avoid races. Signed-off-by: Hannes Reinecke Reviewed-by: Christoph Hellwig --- drivers/scsi/scsi_sysfs.c | 184 +++--- 1 file changed, 93 ins