sysfs: kill unnecessary attribute->owner
Tejun Heo authored
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: default avatarTejun Heo <htejun@gmail.com>
Cc: Cornelia Huck <cornelia.huck@de.ibm.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
7b595756
Name Last commit Last update
..
irq Fix crash with irqpoll due to the IRQF_IRQPOLL flag testing
power PM: introduce set_target method in pm_ops
time NTP: remove clock_was_set() call to prevent deadlock
.gitignore gitignore: ignore more generated files
Kconfig.hz [PATCH] HZ: 300Hz support
Kconfig.preempt Fix trivial typos in Kconfig* files
Makefile move die notifier handling to common code
acct.c [PATCH] kernel: change uses of f_{dentry, vfsmnt} to use f_path
audit.c audit: add spaces on either side of case "..." operator.
audit.h [PATCH] audit signal recipients
auditfilter.c audit: fix oops removing watch if audit disabled
auditsc.c [PATCH] Abnormal End of Processes
capability.c [PATCH] pid: replace do/while_each_task_pid with do/while_each_pid_task
compat.c signal/timer/event: timerfd compat code
configs.c use simple_read_from_buffer in kernel/
cpu.c microcode: use suspend-related CPU hotplug notifications
cpuset.c cpuset: zero malloc - fix for old cpusets
delayacct.c sched: update delay-accounting to use CFS's precise stats
die_notifier.c move die notifier handling to common code
dma.c [PATCH] struct seq_operations and struct file_operations constification
exec_domain.c Remove obsolete #include <linux/config.h>
exit.c sched: update delay-accounting to use CFS's precise stats
extable.c [PATCH] symbol_put_addr() locks kernel
fork.c sched: update delay-accounting to use CFS's precise stats
futex.c FUTEX: Restore the dropped ERSCH fix
futex_compat.c
hrtimer.c
itimer.c
kallsyms.c
kexec.c
kfifo.c
kmod.c
kprobes.c
ksysfs.c
kthread.c
latency.c
lockdep.c
lockdep_internals.h
lockdep_proc.c
module.c
mutex-debug.c
mutex-debug.h
mutex.c
mutex.h
nsproxy.c
panic.c
params.c
pid.c
posix-cpu-timers.c
posix-timers.c
printk.c
profile.c
ptrace.c
rcupdate.c
rcutorture.c
relay.c
resource.c
rtmutex-debug.c
rtmutex-debug.h
rtmutex-tester.c
rtmutex.c
rtmutex.h
rtmutex_common.h
rwsem.c
sched.c
sched_debug.c
sched_fair.c
sched_idletask.c
sched_rt.c
sched_stats.h
seccomp.c
signal.c
softirq.c
softlockup.c
spinlock.c
srcu.c
stacktrace.c
stop_machine.c
sys.c
sys_ni.c
sysctl.c
taskstats.c
time.c
timer.c
tsacct.c
uid16.c
user.c
utsname.c
utsname_sysctl.c
wait.c
workqueue.c