[openib-general] What context can CM be called from?
Roland Dreier
roland at topspin.com
Mon Mar 28 15:58:28 PST 2005
Is it supposed to be OK to call CM functions such as ib_send_cm_dreq()
from interrupt context? ib_send_cm_dreq() calls cm_alloc_msg(), and
in the current CM code, cm_alloc_msg() does
m = kmalloc(sizeof *m, GFP_KERNEL);
which makes it unsafe to call from interrupt context (as well as
triggering __might_sleep warnings if you do that).
I saw this trying out Libor's current SDP code, and I'm wondering if
the fix should be in SDP or the CM.
- R.
More information about the general
mailing list