be2net: use mutex instead of spin lock for mbox_lock
authorIvan Vecera <ivecera@redhat.com>
Tue, 14 Dec 2010 05:43:19 +0000 (05:43 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 16 Dec 2010 22:12:26 +0000 (14:12 -0800)
commit2984961c388381c1830f95e1c2dc2137301b1009
treecef2c252c2cf0d6f0e8660d3372a1aa81eba312d
parentf88a4a9b65a6f3422b81be995535d0e69df11bb8
be2net: use mutex instead of spin lock for mbox_lock

Since the mbox polling uses the schedule_timeout, the mbox_lock should be
a mutex and not a spin lock.
The commit f25b03a replaced udelay() with schedule_timeout() but didn't
change mbox_lock to semaphore or mutex.

Signed-off-by: Ivan Vecera <ivecera@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/benet/be.h
drivers/net/benet/be_cmds.c
drivers/net/benet/be_main.c