[ofw] ctrl-c of appl

Sean Hefty sean.hefty at intel.com
Wed Feb 3 10:50:47 PST 2010


copying ofw_list, assuming this is a windows issue

>I am running ib-send-bw and normally I can control C it at various points and
>everything gets torn down, for example, deregister-mr is called.  But, when it
>is sitting in poll-cq, if I do a control C, deregister-mr does not get called
>and I get a bug check saying 'blah' pages are still mapped.   Is this a known
>problem? What's an hca driver to do if umcloseca is called but resources
>haven't been destroyed/deregistered?

I'm guessing that this is not a known problem.  crtl-c should always work to
kill the app and cleanup all kernel resources.

I'm guessing that you're running on windows.  Is that correct?  If so, then
ib_send_bw runs over ibal, which sounds like it's not cleaning up properly.

IMO, an HCA should assume that all resources associated with an HCA will have
been released before closeca is called.  It could use reference checks to verify
this and return an error on the close, or assert that the reference is 0 when
close is called.  (This is almost certainly an error in the calling program,
rather than something that can be handled at run time.)

- Sean




More information about the ofw mailing list