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.
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html