[SCSI] scsi_sysfs: Implement 'is_visible' callback
authorHannes Reinecke <hare@suse.de>
Sat, 15 Mar 2014 08:51:47 +0000 (09:51 +0100)
committerJames Bottomley <JBottomley@Parallels.com>
Wed, 19 Mar 2014 22:22:39 +0000 (15:22 -0700)
commit276b20d09be7a1c260f0a94880d33e0850efe200
treed2f87fd172c04197f473235815eb18a01bf0b586
parent9a993302cc7a2e0a22e0851122dcfb59b56abd7a
[SCSI] scsi_sysfs: Implement 'is_visible' callback

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 <hare@suse.de>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/scsi_sysfs.c