Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 Mar 2018 18:55:59 +0000 (UTC)
From:      Hans Petter Selasky <hselasky@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r331804 - stable/11/sys/contrib/rdma/krping
Message-ID:  <201803301855.w2UItxjG089102@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: hselasky
Date: Fri Mar 30 18:55:59 2018
New Revision: 331804
URL: https://svnweb.freebsd.org/changeset/base/331804

Log:
  MFC r331438:
  Exit krping on device removal to avoid endless hang situation.
  
  Sponsored by:	Mellanox Technologies

Modified:
  stable/11/sys/contrib/rdma/krping/krping.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/contrib/rdma/krping/krping.c
==============================================================================
--- stable/11/sys/contrib/rdma/krping/krping.c	Fri Mar 30 18:55:13 2018	(r331803)
+++ stable/11/sys/contrib/rdma/krping/krping.c	Fri Mar 30 18:55:59 2018	(r331804)
@@ -301,6 +301,8 @@ static int krping_cma_event_handler(struct rdma_cm_id 
 
 	case RDMA_CM_EVENT_DEVICE_REMOVAL:
 		printk(KERN_ERR PFX "cma detected device removal!!!!\n");
+		cb->state = ERROR;
+		wake_up_interruptible(&cb->sem);
 		break;
 
 	default:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201803301855.w2UItxjG089102>