int ptlrpc_obd_ping(struct obd_device *obd) { int rc; struct ptlrpc_request *req; req = ptlrpc_prep_ping(obd->u.cli.cl_import); if (!req) return -ENOMEM; req->rq_send_state = LUSTRE_IMP_FULL; rc = ptlrpc_queue_wait(req); ptlrpc_req_finished(req); return rc; }
int ptlrpc_obd_ping(struct obd_device *obd) { int rc; struct ptlrpc_request *req; ENTRY; req = ptlrpc_prep_ping(obd->u.cli.cl_import); if (req == NULL) RETURN(-ENOMEM); req->rq_send_state = LUSTRE_IMP_FULL; rc = ptlrpc_queue_wait(req); ptlrpc_req_finished(req); RETURN(rc); }
static int ptlrpc_ping(struct obd_import *imp) { struct ptlrpc_request *req; req = ptlrpc_prep_ping(imp); if (!req) { CERROR("OOM trying to ping %s->%s\n", imp->imp_obd->obd_uuid.uuid, obd2cli_tgt(imp->imp_obd)); return -ENOMEM; } DEBUG_REQ(D_INFO, req, "pinging %s->%s", imp->imp_obd->obd_uuid.uuid, obd2cli_tgt(imp->imp_obd)); ptlrpcd_add_req(req); return 0; }
int ptlrpc_ping(struct obd_import *imp) { struct ptlrpc_request *req; ENTRY; req = ptlrpc_prep_ping(imp); if (req == NULL) { CERROR("OOM trying to ping %s->%s\n", imp->imp_obd->obd_uuid.uuid, obd2cli_tgt(imp->imp_obd)); RETURN(-ENOMEM); } DEBUG_REQ(D_INFO, req, "pinging %s->%s", imp->imp_obd->obd_uuid.uuid, obd2cli_tgt(imp->imp_obd)); ptlrpcd_add_req(req, PDL_POLICY_ROUND, -1); RETURN(0); }