net/appletalk: push down BKL into a atalk_dgram_ops
authorArnd Bergmann <arnd@arndb.de>
Thu, 5 Nov 2009 04:37:26 +0000 (04:37 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 7 Nov 2009 08:46:37 +0000 (00:46 -0800)
commitecced8ba8759c16337fc6785d7bab8931ca55cf6
treea46cb34bc22943edb730a8b1a7c1b16a333ce6c8
parentc6060be46fbda5af651b6ed2b85502ccbb3d9279
net/appletalk: push down BKL into a atalk_dgram_ops

Making the BKL usage explicit in appletalk 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 appletalk
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/appletalk/ddp.c