- fixed leaked refcount in failed osc_request startup
- small debugging message fix
- removed extraneous PtlMDUnlink
- try to remove kqswnal in llmountcleanup
OBD_ALLOC(osc->osc_peer, sizeof(*osc->osc_peer));
if (osc->osc_peer == NULL)
- return -ENOMEM;
+ RETURN(-ENOMEM);
rc = ptlrpc_connect_client(dev, "ost",
OST_REQUEST_PORTAL,
ost_unpack_rep,
osc->osc_peer);
- MOD_INC_USE_COUNT;
- EXIT;
- return rc;
+ if (rc == 0)
+ MOD_INC_USE_COUNT;
+ RETURN(rc);
}
static int osc_cleanup(struct obd_device * obddev)
/* networked */
err = kportal_uuid_to_peer(uuid, &cl->cli_server);
- if (err != 0) {
- CERROR("cannot find peer %s!", uuid);
- }
+ if (err != 0)
+ CERROR("cannot find peer %s!\n", uuid);
return err;
}
int rc, i;
for (i = 0; i < service->srv_ring_length; i++) {
- rc = PtlMDUnlink(service->srv_md_h[i]);
- if (rc)
- CERROR("PtlMDUnlink failed: %d\n", rc);
-
rc = PtlMEUnlink(service->srv_me_h[i]);
if (rc)
CERROR("PtlMEUnlink failed: %d\n", rc);
quit
EOF
+rmmod kqswnal
rmmod ksocknal
killall acceptor
rmmod portals