From: Akinobu Mita 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 Signed-off-by: Akinbou Mita Signed-off-by: Andrew Morton --- drivers/md/md.c | 1 + 1 files changed, 1 insertion(+) diff -puN drivers/md/md.c~md-fix-proc-mdstat-refcounting drivers/md/md.c --- a/drivers/md/md.c~md-fix-proc-mdstat-refcounting +++ a/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, _