> > If they literaly are 'return 0' you can just remove them, as aActually it turns out you can introduce bugs doing this when the BKL is pushed down. The problem is the methods are not NULL, they (with the lock pushed down are) { lock_kernel(); unlock_kernel(); } And we have drivers with setup code that does things in the wrong order but under the BKL. eg one I just fixed did misc_register() init locks allocate memory do stuff return 0; The lock/unlock in the open happens to save your butt against the wrong order of intialisation because the open cannot occur before the lock is taken, and thanks to the BKL it cannot make any progress until the setup is completed. Fun too - udev loves opening things as they appear so in some cases we might actually trigger them too. So when you remove the _open() empty methods *please* make sure you have verified the correctness and ordering of the entire registration path. I've found three examples of this so far just cleaning up drivers/watchdog. Alan --
| David Miller | Slow DOWN, please!!! |
| H. Peter Anvin | Re: [Ksummit-2008-discuss] Fixing the Kernel Janitors project |
| Pardo | Re: pthread_create() slow for many threads; also time to revisit 64b context switc... |
| Roland Dreier | Re: Integration of SCST in the mainstream Linux kernel |
git: | |
| Ken Pratt | pack operation is thrashing my server |
| Junio C Hamano | Re: [RFC] origin link for cherry-pick and revert |
| Len Brown | fatal: unable to create '.git/index': File exists |
| Petr Baudis | [RFC][PATCH 0/7] Submodule support in git mv, git rm |
| Karel Kulhavy | OpenBSD kernel janitors |
| rezidue | Speed Problems |
| Richard Stallman | Real men don't attack straw men |
| Alex Thurlow | Router performance on OpenBSD and OpenBGPD |
| David Miller | [GIT]: Networking |
| David Miller | Re: kernel oops when system under network stress |
| Laszlo Attila Toth | [PATCH] Introducing socket mark socket option |
| Evgeniy Polyakov | [resend take 2 0/4] Distributed storage. |
