stable.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Patch "cxgb4: avoid enabling napi twice to the same queue" has been added to the 3.18-stable tree
@ 2017-06-08  7:33 gregkh
  0 siblings, 0 replies; only message in thread
From: gregkh @ 2017-06-08  7:33 UTC (permalink / raw)
  To: ganeshgr, davem, gregkh; +Cc: stable, stable-commits


This is a note to let you know that I've just added the patch titled

    cxgb4: avoid enabling napi twice to the same queue

to the 3.18-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     cxgb4-avoid-enabling-napi-twice-to-the-same-queue.patch
and it can be found in the queue-3.18 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@vger.kernel.org> know about it.


>From foo@baz Thu Jun  8 09:17:40 CEST 2017
From: Ganesh Goudar <ganeshgr@chelsio.com>
Date: Wed, 31 May 2017 18:26:28 +0530
Subject: cxgb4: avoid enabling napi twice to the same queue

From: Ganesh Goudar <ganeshgr@chelsio.com>


[ Upstream commit e7519f9926f1d0d11c776eb0475eb098c7760f68 ]

Take uld mutex to avoid race between cxgb_up() and
cxgb4_register_uld() to enable napi for the same uld
queue.

Signed-off-by: Ganesh Goudar <ganeshgr@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
---
 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c |    4 ++++
 1 file changed, 4 insertions(+)

--- a/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c
+++ b/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c
@@ -4580,10 +4580,14 @@ static int cxgb_up(struct adapter *adap)
 		if (err)
 			goto irq_err;
 	}
+
+	mutex_lock(&uld_mutex);
 	enable_rx(adap);
 	t4_sge_start(adap);
 	t4_intr_enable(adap);
 	adap->flags |= FULL_INIT_DONE;
+	mutex_unlock(&uld_mutex);
+
 	notify_ulds(adap, CXGB4_STATE_UP);
 #if IS_ENABLED(CONFIG_IPV6)
 	update_clip(adap);


Patches currently in stable-queue which might be from ganeshgr@chelsio.com are

queue-3.18/cxgb4-avoid-enabling-napi-twice-to-the-same-queue.patch

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-06-08  7:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-06-08  7:33 Patch "cxgb4: avoid enabling napi twice to the same queue" has been added to the 3.18-stable tree gregkh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).