net/ipx: push down BKL into a ipx_dgram_ops
authorArnd Bergmann <arnd@arndb.de>
Thu, 5 Nov 2009 04:37:27 +0000 (04:37 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 7 Nov 2009 08:46:39 +0000 (00:46 -0800)
commit83927ba069a65326f39991a02d6a49ba3b7cea44
treea4286ea9985ba13dbb49a7f3f2898c40d11558ee
parentecced8ba8759c16337fc6785d7bab8931ca55cf6
net/ipx: push down BKL into a ipx_dgram_ops

Making the BKL usage explicit in ipx makes it more
obvious where it is used, reduces code size and helps
getting rid of the BKL in common code.

I did not analyse how to kill lock_kernel from ipx
entirely, this will involve either proving that it's not
needed, or replacing with a proper mutex or spinlock,
after finding out which data structures are protected
by the lock.

Cc: Arnaldo Carvalho de Melo <acme@ghostprotocols.net>
Cc: David S. Miller <davem@davemloft.net>
Cc: Stephen Hemminger <shemminger@vyatta.com>
Cc: netdev@vger.kernel.org
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipx/af_ipx.c