aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/arcmsr/arcmsr_attr.c
diff options
context:
space:
mode:
authorTejun Heo <htejun@gmail.com>2007-06-13 14:45:17 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2007-07-11 19:09:06 -0400
commit7b595756ec1f49e0049a9e01a1298d53a7faaa15 (patch)
treecd06687ab3e5c7a5a4ef91903dff207a18c4db76 /drivers/scsi/arcmsr/arcmsr_attr.c
parentdbde0fcf9f8f6d477af3c32d9979e789ee680cde (diff)
sysfs: kill unnecessary attribute->owner
sysfs is now completely out of driver/module lifetime game. After deletion, a sysfs node doesn't access anything outside sysfs proper, so there's no reason to hold onto the attribute owners. Note that often the wrong modules were accounted for as owners leading to accessing removed modules. This patch kills now unnecessary attribute->owner. Note that with this change, userland holding a sysfs node does not prevent the backing module from being unloaded. For more info regarding lifetime rule cleanup, please read the following message. http://article.gmane.org/gmane.linux.kernel/510293 (tweaked by Greg to not delete the field just yet, to make it easier to merge things properly.) Signed-off-by: Tejun Heo <htejun@gmail.com> Cc: Cornelia Huck <cornelia.huck@de.ibm.com> Cc: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/scsi/arcmsr/arcmsr_attr.c')
-rw-r--r--drivers/scsi/arcmsr/arcmsr_attr.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/scsi/arcmsr/arcmsr_attr.c b/drivers/scsi/arcmsr/arcmsr_attr.c
index 03bfed61bffc..8908228bc134 100644
--- a/drivers/scsi/arcmsr/arcmsr_attr.c
+++ b/drivers/scsi/arcmsr/arcmsr_attr.c
@@ -188,7 +188,6 @@ static struct bin_attribute arcmsr_sysfs_message_read_attr = {
188 .attr = { 188 .attr = {
189 .name = "mu_read", 189 .name = "mu_read",
190 .mode = S_IRUSR , 190 .mode = S_IRUSR ,
191 .owner = THIS_MODULE,
192 }, 191 },
193 .size = 1032, 192 .size = 1032,
194 .read = arcmsr_sysfs_iop_message_read, 193 .read = arcmsr_sysfs_iop_message_read,
@@ -198,7 +197,6 @@ static struct bin_attribute arcmsr_sysfs_message_write_attr = {
198 .attr = { 197 .attr = {
199 .name = "mu_write", 198 .name = "mu_write",
200 .mode = S_IWUSR, 199 .mode = S_IWUSR,
201 .owner = THIS_MODULE,
202 }, 200 },
203 .size = 1032, 201 .size = 1032,
204 .write = arcmsr_sysfs_iop_message_write, 202 .write = arcmsr_sysfs_iop_message_write,
@@ -208,7 +206,6 @@ static struct bin_attribute arcmsr_sysfs_message_clear_attr = {
208 .attr = { 206 .attr = {
209 .name = "mu_clear", 207 .name = "mu_clear",
210 .mode = S_IWUSR, 208 .mode = S_IWUSR,
211 .owner = THIS_MODULE,
212 }, 209 },
213 .size = 1, 210 .size = 1,
214 .write = arcmsr_sysfs_iop_message_clear, 211 .write = arcmsr_sysfs_iop_message_clear,