]> git.karo-electronics.de Git - mv-sheeva.git/commit
drbd: increase module count on /proc/drbd access
authorLars Ellenberg <lars.ellenberg@linbit.com>
Wed, 24 Nov 2010 09:33:02 +0000 (10:33 +0100)
committerPhilipp Reisner <philipp.reisner@linbit.com>
Thu, 10 Mar 2011 10:35:11 +0000 (11:35 +0100)
commit3da127fa887e5187ede702b835770634d705f8b2
tree8bd46caed3ed01c192d99117819d314f838e42cd
parentc507f46f26661d4d0dc95a1b1271df5855ab4602
drbd: increase module count on /proc/drbd access

If someone holds /proc/drbd open, previously rmmod would
"succeed" in starting the unload, but then block on remove_proc_entry,
leading to a situation where the lsmod does not show drbd anymore,
but /proc/drbd being still there (but no longer accessible).

I'd rather have rmmod fail up front in this case.

Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
drivers/block/drbd/drbd_proc.c