[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <11689656373737-git-send-email-ebiederm@xmission.com>
Date: Tue, 16 Jan 2007 09:39:25 -0700
From: "Eric W. Biederman" <ebiederm@...ssion.com>
To: "<Andrew Morton" <akpm@...l.org>
Cc: <linux-kernel@...r.kernel.org>, <containers@...ts.osdl.org>,
<netdev@...r.kernel.org>, xfs-masters@....sgi.com, xfs@....sgi.com,
linux-scsi@...r.kernel.org, James.Bottomley@...elEye.com,
minyard@....org, openipmi-developer@...ts.sourceforge.net,
<tony.luck@...el.com>, linux-mips@...ux-mips.org,
ralf@...ux-mips.org, schwidefsky@...ibm.com,
heiko.carstens@...ibm.com, linux390@...ibm.com,
linux-390@...marist.edu, paulus@...ba.org, linuxppc-dev@...abs.org,
lethal@...ux-sh.org, linuxsh-shmedia-dev@...ts.sourceforge.net,
<ak@...e.de>, vojtech@...e.cz, clemens@...isch.de,
a.zummo@...ertech.it, rtc-linux@...glegroups.com,
linux-parport@...ts.infradead.org, andrea@...e.de,
tim@...erelk.net, philb@....org, aharkes@...cmu.edu,
coda@...cmu.edu, codalist@...EMANN.coda.cs.cmu.edu,
aia21@...tab.net, linux-ntfs-dev@...ts.sourceforge.net,
mark.fasheh@...cle.com, kurt.hackel@...cle.com,
"Eric W. Biederman" <ebiederm@...ssion.com>
Subject: [PATCH 20/59] sysctl: cdrom Don't set de->owner
From: Eric W. Biederman <ebiederm@...ssion.com> - unquoted
There is no need for open files in /proc/sys/XXX to hold
a reference count on the module that provides the file
to prevent module unload races. While there is code active
in the module p->used in the sysctl_table_header is incremented,
preventing the sysctl from being unregisted. Once the
sysctl is unregistered it cannot be found. Open files
are also not a problem as they revalidate the sysctl information
and bump p->used before accessing module code.
So setting de->owner is unnecessary, makes for a bad example
and gets in my way of removing ctl_table->de.
Signed-off-by: Eric W. Biederman <ebiederm@...ssion.com>
---
drivers/cdrom/cdrom.c | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)
diff --git a/drivers/cdrom/cdrom.c b/drivers/cdrom/cdrom.c
index f0a6801..14f72c4 100644
--- a/drivers/cdrom/cdrom.c
+++ b/drivers/cdrom/cdrom.c
@@ -3554,8 +3554,6 @@ static void cdrom_sysctl_register(void)
return;
cdrom_sysctl_header = register_sysctl_table(cdrom_root_table, 0);
- if (cdrom_root_table->ctl_name && cdrom_root_table->child->de)
- cdrom_root_table->child->de->owner = THIS_MODULE;
/* set the defaults */
cdrom_sysctl_settings.autoclose = autoclose;
--
1.4.4.1.g278f
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists