X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lnet%2Flnet%2Flib-move.c;h=615d755593c58490c374a7e61cb96c2c805c1ae3;hp=cc4453fbcd01fd48874e5b0216d52e8b1d8440ad;hb=275016fcae729f8467dc09aa15aa2b4bb2690875;hpb=fa70e91747dc712f3083649cb82194bd7c0c856f diff --git a/lnet/lnet/lib-move.c b/lnet/lnet/lib-move.c index cc4453f..615d755 100644 --- a/lnet/lnet/lib-move.c +++ b/lnet/lnet/lib-move.c @@ -2652,20 +2652,13 @@ lnet_select_pathway(lnet_nid_t src_nid, lnet_nid_t dst_nid, again: /* - * If we're sending to ourselves then there is no need to go through - * any selection. We can shortcut the entire process and send over - * lolnd. - * - * However, we make two exceptions to this rule: - * 1. If the src_nid is specified then our API defines that we must send - * via that interface. - * 2. Recovery messages must be sent to the lnet_ni that is being - * recovered. + * If we're being asked to send to the loopback interface, there + * is no need to go through any selection. We can just shortcut + * the entire process and send over lolnd */ send_data.sd_msg = msg; send_data.sd_cpt = cpt; - if (src_nid == LNET_NID_ANY && !msg->msg_recovery && - lnet_nid2ni_locked(dst_nid, cpt)) { + if (LNET_NETTYP(LNET_NIDNET(dst_nid)) == LOLND) { rc = lnet_handle_lo_send(&send_data); lnet_net_unlock(cpt); return rc;