Post-2.6.20 material.
The locking fixes are mostly commenting the lack of locking or are making
things const.
There's a bunch of code cleanup - elimination of dead code, unused parameters,
and unused structure fields - and some formatting fixes.
Jeff