if (nob == 0)
return;
- LASSERT (!irqs_disabled ());
+ LASSERT (!in_interrupt ());
LASSERT (ndiov > 0);
while (doffset > diov->kiov_len) {
if (nob == 0)
return;
- LASSERT (!irqs_disabled ());
+ LASSERT (!in_interrupt ());
LASSERT (niov > 0);
while (iovoffset > iov->iov_len) {
if (nob == 0)
return;
- LASSERT (!irqs_disabled ());
+ LASSERT (!in_interrupt ());
LASSERT (nkiov > 0);
while (kiovoffset > kiov->kiov_len) {
lnet_kiov_t *kiov = NULL;
int rc;
- LASSERT (!irqs_disabled ());
+ LASSERT (!in_interrupt ());
LASSERT (mlen == 0 || msg != NULL);
if (msg != NULL) {
rc = (ni->ni_lnd->lnd_recv)(ni, private, msg, delayed,
niov, iov, kiov, offset, mlen, rlen);
- LASSERT(!irqs_disabled());
+ LASSERT(!in_interrupt());
if (rc < 0)
lnet_finalize(ni, msg, rc);
}
int delayed = msg->msg_delayed;
int rc;
- LASSERT (!irqs_disabled ());
+ LASSERT (!in_interrupt ());
/* On GET, call lnet_ni_recv() right after the send. The recv gets
* delayed until after the send to ensure the LND still has any RDMA
(msg->msg_txcredit && msg->msg_peertxcredit));
rc = (ni->ni_lnd->lnd_send)(ni, priv, msg);
- LASSERT(!irqs_disabled());
+ LASSERT(!in_interrupt());
if (rc < 0)
lnet_finalize(ni, msg, rc);
__u32 payload_length;
__u32 type;
- LASSERT (!irqs_disabled ());
+ LASSERT (!in_interrupt ());
type = le32_to_cpu(hdr->type);
src_nid = le64_to_cpu(hdr->src_nid);
int unlink;
int rc;
- LASSERT (!irqs_disabled ());
+ LASSERT (!in_interrupt ());
if (msg == NULL)
return;
msg->msg_hdr.msg.ack.match_bits = msg->msg_ev.match_bits;
msg->msg_hdr.msg.ack.mlength = cpu_to_le32(msg->msg_ev.mlength);
- LASSERT(!irqs_disabled());
+ LASSERT(!in_interrupt());
rc = lnet_send(ni, msg);
- LASSERT(!irqs_disabled());
+ LASSERT(!in_interrupt());
if (rc == 0)
return;
LNET_UNLOCK();
- LASSERT(!irqs_disabled());
+ LASSERT(!in_interrupt());
rc = lnet_send(NULL, msg);
- LASSERT(!irqs_disabled());
+ LASSERT(!in_interrupt());
if (rc == 0)
return;