Exit krping on device removal to avoid endless hang situation.

MFC after:	1 week
Sponsored by:	Mellanox Technologies
This commit is contained in:
Hans Petter Selasky 2018-03-23 17:03:42 +00:00
parent 177781564f
commit 87fb59a5cf
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=331438

View File

@ -301,6 +301,8 @@ static int krping_cma_event_handler(struct rdma_cm_id *cma_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: