if (set_eq) {
the_lnet.ln_ping_target_eq =
- LNetEQAlloc(0, lnet_ping_target_event_handler);
+ LNetEQAlloc(lnet_ping_target_event_handler);
if (IS_ERR(the_lnet.ln_ping_target_eq)) {
rc = PTR_ERR(the_lnet.ln_ping_target_eq);
CERROR("Can't allocate ping buffer EQ: %d\n", rc);
struct lnet_handle_md old_mdh;
struct lnet_ping_buffer *pbuf;
struct lnet_ping_buffer *old_pbuf;
- int nnis = the_lnet.ln_push_target_nnis;
+ int nnis;
int rc;
+again:
+ nnis = the_lnet.ln_push_target_nnis;
if (nnis <= 0) {
rc = -EINVAL;
goto fail_return;
}
-again:
+
pbuf = lnet_ping_buffer_alloc(nnis, GFP_NOFS);
if (!pbuf) {
rc = -ENOMEM;
return -EALREADY;
the_lnet.ln_push_target_eq =
- LNetEQAlloc(0, lnet_push_target_event_handler);
+ LNetEQAlloc(lnet_push_target_event_handler);
if (IS_ERR(the_lnet.ln_push_target_eq)) {
rc = PTR_ERR(the_lnet.ln_push_target_eq);
CERROR("Can't allocated push target EQ: %d\n", rc);
lnet_ping_target_update(pbuf, ping_mdh);
- the_lnet.ln_mt_eq = LNetEQAlloc(0, lnet_mt_event_handler);
+ the_lnet.ln_mt_eq = LNetEQAlloc(lnet_mt_event_handler);
if (IS_ERR(the_lnet.ln_mt_eq)) {
rc = PTR_ERR(the_lnet.ln_mt_eq);
CERROR("Can't allocate monitor thread EQ: %d\n", rc);
if (!pbuf)
return -ENOMEM;
- eq = LNetEQAlloc(0, lnet_ping_event_handler);
+ eq = LNetEQAlloc(lnet_ping_event_handler);
if (IS_ERR(eq)) {
rc = PTR_ERR(eq);
CERROR("Can't allocate EQ: %d\n", rc);