]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
md: fix /proc/mdstat refcounting
authorAkinbou Mita <akinobu.mita@gmail.com>
Mon, 26 Mar 2007 21:43:10 +0000 (23:43 +0200)
committerAdrian Bunk <bunk@stusta.de>
Mon, 26 Mar 2007 21:43:10 +0000 (23:43 +0200)
I have seen mdadm oops after successfully unloading md module.

This patch privents from unloading md module while
mdadm is polling /proc/mdstat.

Signed-off-by: Akinbou Mita <akinobu.mita@gmail.com>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
drivers/md/md.c

index 0471ebff482ffa4cf4c6df813fb5283c59813bdf..1b1fae8b58b68b2f9168df55351afcdde8da47d9 100644 (file)
@@ -4325,6 +4325,7 @@ static unsigned int mdstat_poll(struct file *filp, poll_table *wait)
 }
 
 static struct file_operations md_seq_fops = {
+       .owner          = THIS_MODULE,
        .open           = md_seq_open,
        .read           = seq_read,
        .llseek         = seq_lseek,