decnet: convert dndev_lock to spinlock
authorstephen hemminger <shemminger@vyatta.com>
Wed, 11 Nov 2009 07:40:36 +0000 (07:40 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 12 Nov 2009 03:22:18 +0000 (19:22 -0800)
commite5c140a340c4796054b0f6e9035e1faa7edfa6d6
treeca150ab28a91eba36838ffc1519840fac705aa82
parent41bdecf17e6dba92256c65972ec79a482d978be5
decnet: convert dndev_lock to spinlock

There is no reason for this lock to be reader/writer since
the reader only has lock held for a very brief period.
The overhead of read_lock is more expensive than spinlock.

Compile tested only, I am not a decnet user.

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/decnet/dn_dev.c