Date: Fri, 23 Mar 2018 17:03:43 +0000 (UTC) From: Hans Petter Selasky <hselasky@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r331438 - head/sys/contrib/rdma/krping Message-ID: <201803231703.w2NH3hvr020019@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: hselasky Date: Fri Mar 23 17:03:42 2018 New Revision: 331438 URL: https://svnweb.freebsd.org/changeset/base/331438 Log: Exit krping on device removal to avoid endless hang situation. MFC after: 1 week Sponsored by: Mellanox Technologies Modified: head/sys/contrib/rdma/krping/krping.c Modified: head/sys/contrib/rdma/krping/krping.c ============================================================================== --- head/sys/contrib/rdma/krping/krping.c Fri Mar 23 16:59:51 2018 (r331437) +++ head/sys/contrib/rdma/krping/krping.c Fri Mar 23 17:03:42 2018 (r331438) @@ -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?201803231703.w2NH3hvr020019>