stable.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Patch "RDMA/qedr: Return success when not changing QP state" has been added to the 4.9-stable tree
@ 2017-12-06 17:00 gregkh
  0 siblings, 0 replies; only message in thread
From: gregkh @ 2017-12-06 17:00 UTC (permalink / raw)
  To: Ram.Amrani, Michal.Kalderon, Ram.Amrani, alexander.levin,
	dledford, gregkh
  Cc: stable, stable-commits


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

    RDMA/qedr: Return success when not changing QP state

to the 4.9-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:
     rdma-qedr-return-success-when-not-changing-qp-state.patch
and it can be found in the queue-4.9 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 Wed Dec  6 17:39:55 CET 2017
From: Ram Amrani <Ram.Amrani@Cavium.com>
Date: Tue, 24 Jan 2017 13:50:34 +0200
Subject: RDMA/qedr: Return success when not changing QP state

From: Ram Amrani <Ram.Amrani@Cavium.com>


[ Upstream commit 865cea40b69741c3da2574176876463233b2b67c ]

If the user is requesting us to change the QP state to the same state
that it is already in, return success instead of failure.

Signed-off-by: Ram Amrani <Ram.Amrani@cavium.com>
Signed-off-by: Michal Kalderon <Michal.Kalderon@cavium.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
---
 drivers/infiniband/hw/qedr/verbs.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/drivers/infiniband/hw/qedr/verbs.c
+++ b/drivers/infiniband/hw/qedr/verbs.c
@@ -1653,7 +1653,7 @@ static int qedr_update_qp_state(struct q
 	int status = 0;
 
 	if (new_state == qp->state)
-		return 1;
+		return 0;
 
 	switch (qp->state) {
 	case QED_ROCE_QP_STATE_RESET:


Patches currently in stable-queue which might be from Ram.Amrani@Cavium.com are

queue-4.9/rdma-qedr-return-success-when-not-changing-qp-state.patch
queue-4.9/rdma-qedr-fix-rdma-cm-loopback.patch

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

only message in thread, other threads:[~2017-12-06 17:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-06 17:00 Patch "RDMA/qedr: Return success when not changing QP state" has been added to the 4.9-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).