[ofa-general] QP connection healthy detection problem with fork/exec

Roland Dreier rdreier at cisco.com
Fri Mar 28 10:33:28 PDT 2008


 > When a process fork/exec, isn't QP destroyed automatically ? If the QP is destroyed, then
 > RDMA operation is based on QP connection and should fail.

No, the QP is not destroyed automatically.

The kernel will clean up resources when the user verbs context's file
descriptor is closed, and that does not happen on fork/exec.

A safe thing to do when you fork/exec is to close any file descriptors
that you don't need... you can use a loop up to getdtablesize() to
close everything.

 - R.



More information about the general mailing list