Re: Problem with RDMA device removal architecture

Steve Wise
2010-03-26T16:59:20Z

Tung, Chien Tin wrote:
>> In other words, I think we want the ucma context to stay around until
>> the application destroys it (via explicit means or via exit). But the
>> rdma_cm_id gets destroyed immediately upon receiving a DEVICE_REMOVE event.
>>
>
> How do we "take care" of evil applications that won't go away?
>
>

Since the low level rdma_cm_id _is_ destroyed, then the RDMA device can
unload and go away. The evil app then only is wasting the ucma
contexts, file descriptors, etc.

Now, we could also consider something more abrupt like delivering a
SIGABRT or SIGBUS to all processes that have objects allocated for the
device that is going away. But that is kind of drastic, and if done
unconditionally, will kill applications that want to process the device
removal and free the objects using that device, but still want to
continue running on the available devices. So I wouldn't recommend we
deliver fatal signals...

Steve.