]> www.infradead.org Git - users/jedix/linux-maple.git/commit
be2net: make SET_LOOPBACK_MODE cmd asynchrounous
authorSuresh Reddy <Suresh.Reddy@emulex.com>
Fri, 10 Jul 2015 09:32:50 +0000 (05:32 -0400)
committerManjunath Govindashetty <manjunath.govindashetty@oracle.com>
Fri, 16 Oct 2015 00:07:54 +0000 (17:07 -0700)
commit2217d3c345c65134f22bac0039f4b7d3be7feafe
tree5041f1e116ac8c75ce8b27e0277aa227491adde0
parent9e80cd04946a2d419ddd54a16ab5d3f19a812ee0
be2net: make SET_LOOPBACK_MODE cmd asynchrounous

The SET_LOOPBACK_MODE command is always issued from ethtool only in a
process context. So, while waiting for the cmd to complete, the driver
can sleep instead of holding spin_lock_bh() on the mcc_lock. This is done
by calling be_mcc_notify() instead of be_mcc_notify_wait() (that returns
only after the cmd completes while the MCCQ is locked).

Signed-off-by: Suresh Reddy <suresh.reddy@avagotech.com>
Signed-off-by: Sathya Perla <sathya.perla@avagotech.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/emulex/benet/be_cmds.c
drivers/net/ethernet/emulex/benet/be_cmds.h
drivers/net/ethernet/emulex/benet/be_ethtool.c