[LOCK] Is it really necessary to use a "big module lock"?

2007-11-13 Thread Jerry Jiang
Hi all, I came across a question when review other's module code. something like: int __init module_init() { down_interruptible(the_big_module_sem); // code for init... up(the_big_module_sem); } void __exit module_exit() {

[LOCK] Is it really necessary to use a big module lock?

2007-11-13 Thread Jerry Jiang
Hi all, I came across a question when review other's module code. something like: int __init module_init() { down_interruptible(the_big_module_sem); // code for init... up(the_big_module_sem); } void __exit module_exit() {