* [PATCH] md: fix /proc/mdstat refcounting
@ 2006-10-12 5:31 Akinobu Mita
0 siblings, 0 replies; only message in thread
From: Akinobu Mita @ 2006-10-12 5:31 UTC (permalink / raw)
To: linux-kernel; +Cc: Neil Brown
I have seen mdadm oops after successfully unloading md module.
This patch privents from unloading md module while
mdadm is polling /proc/mdstat.
Cc: Neil Brown <neilb@suse.de>
Signed-off-by: Akinbou Mita <akinobu.mita@gmail.com>
Index: work-fault-inject/drivers/md/md.c
===================================================================
--- work-fault-inject.orig/drivers/md/md.c
+++ work-fault-inject/drivers/md/md.c
@@ -4912,6 +4912,7 @@ static unsigned int mdstat_poll(struct f
}
static struct file_operations md_seq_fops = {
+ .owner = THIS_MODULE,
.open = md_seq_open,
.read = seq_read,
.llseek = seq_lseek,
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-10-12 5:30 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-12 5:31 [PATCH] md: fix /proc/mdstat refcounting Akinobu Mita
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.