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

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: