aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/qla2xxx
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/qla2xxx
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/qla2xxx')
-rw-r--r--drivers/scsi/qla2xxx/qla_attr.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/scsi/qla2xxx/qla_attr.c b/drivers/scsi/qla2xxx/qla_attr.c
index 8081b637d97e..96587253bfa9 100644
--- a/drivers/scsi/qla2xxx/qla_attr.c
+++ b/drivers/scsi/qla2xxx/qla_attr.c
@@ -73,7 +73,6 @@ static struct bin_attribute sysfs_fw_dump_attr = {
73 .attr = { 73 .attr = {
74 .name = "fw_dump", 74 .name = "fw_dump",
75 .mode = S_IRUSR | S_IWUSR, 75 .mode = S_IRUSR | S_IWUSR,
76 .owner = THIS_MODULE,
77 }, 76 },
78 .size = 0, 77 .size = 0,
79 .read = qla2x00_sysfs_read_fw_dump, 78 .read = qla2x00_sysfs_read_fw_dump,
@@ -149,7 +148,6 @@ static struct bin_attribute sysfs_nvram_attr = {
149 .attr = { 148 .attr = {
150 .name = "nvram", 149 .name = "nvram",
151 .mode = S_IRUSR | S_IWUSR, 150 .mode = S_IRUSR | S_IWUSR,
152 .owner = THIS_MODULE,
153 }, 151 },
154 .size = 512, 152 .size = 512,
155 .read = qla2x00_sysfs_read_nvram, 153 .read = qla2x00_sysfs_read_nvram,
@@ -198,7 +196,6 @@ static struct bin_attribute sysfs_optrom_attr = {
198 .attr = { 196 .attr = {
199 .name = "optrom", 197 .name = "optrom",
200 .mode = S_IRUSR | S_IWUSR, 198 .mode = S_IRUSR | S_IWUSR,
201 .owner = THIS_MODULE,
202 }, 199 },
203 .size = OPTROM_SIZE_24XX, 200 .size = OPTROM_SIZE_24XX,
204 .read = qla2x00_sysfs_read_optrom, 201 .read = qla2x00_sysfs_read_optrom,
@@ -279,7 +276,6 @@ static struct bin_attribute sysfs_optrom_ctl_attr = {
279 .attr = { 276 .attr = {
280 .name = "optrom_ctl", 277 .name = "optrom_ctl",
281 .mode = S_IWUSR, 278 .mode = S_IWUSR,
282 .owner = THIS_MODULE,
283 }, 279 },
284 .size = 0, 280 .size = 0,
285 .write = qla2x00_sysfs_write_optrom_ctl, 281 .write = qla2x00_sysfs_write_optrom_ctl,
@@ -327,7 +323,6 @@ static struct bin_attribute sysfs_vpd_attr = {
327 .attr = { 323 .attr = {
328 .name = "vpd", 324 .name = "vpd",
329 .mode = S_IRUSR | S_IWUSR, 325 .mode = S_IRUSR | S_IWUSR,
330 .owner = THIS_MODULE,
331 }, 326 },
332 .size = 0, 327 .size = 0,
333 .read = qla2x00_sysfs_read_vpd, 328 .read = qla2x00_sysfs_read_vpd,
@@ -375,7 +370,6 @@ static struct bin_attribute sysfs_sfp_attr = {
375 .attr = { 370 .attr = {
376 .name = "sfp", 371 .name = "sfp",
377 .mode = S_IRUSR | S_IWUSR, 372 .mode = S_IRUSR | S_IWUSR,
378 .owner = THIS_MODULE,
379 }, 373 },
380 .size = SFP_DEV_SIZE * 2, 374 .size = SFP_DEV_SIZE * 2,
381 .read = qla2x00_sysfs_read_sfp, 375 .read = qla2x00_sysfs_read_sfp,