diff options
author | Lars Ellenberg | 2010-11-24 10:37:35 +0100 |
---|---|---|
committer | Philipp Reisner | 2011-03-10 11:35:12 +0100 |
commit | 17a93f3007c13003c739a19d0814cb5c2d21daba (patch) | |
tree | a3b6bd04eeecc0da14f20e6766495b3b06e7ce57 /block/blk-integrity.c | |
parent | drbd: increase module count on /proc/drbd access (diff) | |
download | kernel-qcow2-linux-17a93f3007c13003c739a19d0814cb5c2d21daba.tar.gz kernel-qcow2-linux-17a93f3007c13003c739a19d0814cb5c2d21daba.tar.xz kernel-qcow2-linux-17a93f3007c13003c739a19d0814cb5c2d21daba.zip |
drbd: remove /proc/drbd before unregistering from netlink
There still exists a (theoretical) race on module unload, where
/proc/drbd may still exist, but the netlink callback has been
unregistered already, allowing drbdsetup to shout without listeners,
and get no reply.
Reorder remove_proc_entry and unregister of netlink callback.
drbdsetup first checks for existence of the proc entry,
and if that is missing, won't even try to contact the module.
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
Diffstat (limited to 'block/blk-integrity.c')
0 files changed, 0 insertions, 0 deletions