* [PATCH net-next] be2net: disable bh with spin_lock in be_process_mcc
@ 2019-07-30 11:32 Denis Kirjanov
2019-07-30 14:45 ` Willem de Bruijn
2019-07-31 23:08 ` David Miller
0 siblings, 2 replies; 4+ messages in thread
From: Denis Kirjanov @ 2019-07-30 11:32 UTC (permalink / raw)
To: sathya.perla, ajit.khaparde, sriharsha.basavapatna; +Cc: netdev, Denis Kirjanov
Signed-off-by: Denis Kirjanov <kdav@linux-powerpc.org>
---
drivers/net/ethernet/emulex/benet/be_cmds.c | 4 ++--
drivers/net/ethernet/emulex/benet/be_main.c | 2 --
2 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/drivers/net/ethernet/emulex/benet/be_cmds.c b/drivers/net/ethernet/emulex/benet/be_cmds.c
index ef5d61d57597..9365218f4d3b 100644
--- a/drivers/net/ethernet/emulex/benet/be_cmds.c
+++ b/drivers/net/ethernet/emulex/benet/be_cmds.c
@@ -550,7 +550,7 @@ int be_process_mcc(struct be_adapter *adapter)
int num = 0, status = 0;
struct be_mcc_obj *mcc_obj = &adapter->mcc_obj;
- spin_lock(&adapter->mcc_cq_lock);
+ spin_lock_bh(&adapter->mcc_cq_lock);
while ((compl = be_mcc_compl_get(adapter))) {
if (compl->flags & CQE_FLAGS_ASYNC_MASK) {
@@ -566,7 +566,7 @@ int be_process_mcc(struct be_adapter *adapter)
if (num)
be_cq_notify(adapter, mcc_obj->cq.id, mcc_obj->rearm_cq, num);
- spin_unlock(&adapter->mcc_cq_lock);
+ spin_unlock_bh(&adapter->mcc_cq_lock);
return status;
}
diff --git a/drivers/net/ethernet/emulex/benet/be_main.c b/drivers/net/ethernet/emulex/benet/be_main.c
index 2edb86ec9fe9..4d8e40ac66d2 100644
--- a/drivers/net/ethernet/emulex/benet/be_main.c
+++ b/drivers/net/ethernet/emulex/benet/be_main.c
@@ -5630,9 +5630,7 @@ static void be_worker(struct work_struct *work)
* mcc completions
*/
if (!netif_running(adapter->netdev)) {
- local_bh_disable();
be_process_mcc(adapter);
- local_bh_enable();
goto reschedule;
}
--
2.12.3
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH net-next] be2net: disable bh with spin_lock in be_process_mcc
2019-07-30 11:32 [PATCH net-next] be2net: disable bh with spin_lock in be_process_mcc Denis Kirjanov
@ 2019-07-30 14:45 ` Willem de Bruijn
2019-07-31 10:54 ` Denis Kirjanov
2019-07-31 23:08 ` David Miller
1 sibling, 1 reply; 4+ messages in thread
From: Willem de Bruijn @ 2019-07-30 14:45 UTC (permalink / raw)
To: Denis Kirjanov
Cc: sathya.perla, ajit.khaparde, sriharsha.basavapatna,
Network Development, Denis Kirjanov
On Tue, Jul 30, 2019 at 7:33 AM Denis Kirjanov <kda@linux-powerpc.org> wrote:
>
> Signed-off-by: Denis Kirjanov <kdav@linux-powerpc.org>
This is a partial revert of the previous change to these lines in 2012
in commit 072a9c486004 ("netpoll: revert 6bdb7fe3104 and fix be_poll()
instead").
The commit message is empty. Can you give some context as to why this
is needed and correct?
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH net-next] be2net: disable bh with spin_lock in be_process_mcc
2019-07-30 14:45 ` Willem de Bruijn
@ 2019-07-31 10:54 ` Denis Kirjanov
0 siblings, 0 replies; 4+ messages in thread
From: Denis Kirjanov @ 2019-07-31 10:54 UTC (permalink / raw)
To: Willem de Bruijn
Cc: sathya.perla, ajit.khaparde, sriharsha.basavapatna,
Network Development, Denis Kirjanov
On 7/30/19, Willem de Bruijn <willemdebruijn.kernel@gmail.com> wrote:
> On Tue, Jul 30, 2019 at 7:33 AM Denis Kirjanov <kda@linux-powerpc.org>
> wrote:
>>
>> Signed-off-by: Denis Kirjanov <kdav@linux-powerpc.org>
>
> This is a partial revert of the previous change to these lines in 2012
> in commit 072a9c486004 ("netpoll: revert 6bdb7fe3104 and fix be_poll()
> instead").
>
> The commit message is empty. Can you give some context as to why this
> is needed and correct?
The idea was just to make some cleanup. Now I've checked that be_process_mcc
is invoked in 3 different places and always with BHs disabled except
the be_poll function but since it's invoked from softirq with BHs
disabled it won't hurt.
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH net-next] be2net: disable bh with spin_lock in be_process_mcc
2019-07-30 11:32 [PATCH net-next] be2net: disable bh with spin_lock in be_process_mcc Denis Kirjanov
2019-07-30 14:45 ` Willem de Bruijn
@ 2019-07-31 23:08 ` David Miller
1 sibling, 0 replies; 4+ messages in thread
From: David Miller @ 2019-07-31 23:08 UTC (permalink / raw)
To: kda; +Cc: sathya.perla, ajit.khaparde, sriharsha.basavapatna, netdev, kdav
From: Denis Kirjanov <kda@linux-powerpc.org>
Date: Tue, 30 Jul 2019 13:32:26 +0200
> Signed-off-by: Denis Kirjanov <kdav@linux-powerpc.org>
Empty commit message, no way.
You must explain what this patch is doing, and why.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2019-07-31 23:08 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-30 11:32 [PATCH net-next] be2net: disable bh with spin_lock in be_process_mcc Denis Kirjanov
2019-07-30 14:45 ` Willem de Bruijn
2019-07-31 10:54 ` Denis Kirjanov
2019-07-31 23:08 ` David Miller
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.