]> asedeno.scripts.mit.edu Git - linux.git/commit
drbd: fix rmmod cleanup, remove _all_ debugfs entries
authorLars Ellenberg <lars.ellenberg@linbit.com>
Tue, 29 Aug 2017 08:20:41 +0000 (10:20 +0200)
committerJens Axboe <axboe@kernel.dk>
Tue, 29 Aug 2017 21:34:45 +0000 (15:34 -0600)
commit3f1a1b7cbb94f5f61d55f5f8d7391a0d84824cca
treeae7cc1feea7ac7987f7038b5e41d346dac1f535c
parentbe7445a38110a4232ea6c8a589ba4cb18aceb41c
drbd: fix rmmod cleanup, remove _all_ debugfs entries

If there are still resources defined, but "empty", no more volumes
or connections configured, they don't hold module reference counts,
so rmmod is possible.

To avoid DRBD leftovers in debugfs, we need to call our global
drbd_debugfs_cleanup() only after all resources have been cleaned up.

Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/drbd/drbd_main.c