X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Fosc%2Fosc_request.c;h=fbd698f9ba56a0ef0fb4fd164b65690dbdeba61e;hb=c39489126f88bb5b30643ebb11c72fbe9f9d2241;hp=b23327dbc58cec8299a18fd09be2cdb986b1d232;hpb=9d4b898b1c1c7c318fda5f0c345ed726c774c06a;p=fs%2Flustre-release.git diff --git a/lustre/osc/osc_request.c b/lustre/osc/osc_request.c index b23327d..fbd698f 100644 --- a/lustre/osc/osc_request.c +++ b/lustre/osc/osc_request.c @@ -48,7 +48,7 @@ # include #endif -#include +# include #include #include #include @@ -2797,7 +2797,7 @@ static int osc_get_info(struct obd_export *exp, obd_count keylen, ptlrpc_req_finished(req); RETURN(rc); } - RETURN(-EPROTO); + RETURN(-EINVAL); } static int osc_set_info(struct obd_export *exp, obd_count keylen, @@ -2926,9 +2926,10 @@ static int osc_connect(struct lustre_handle *exph, unsigned long connect_flags) { int rc; - ENTRY; + rc = client_connect_import(exph, obd, cluuid, connect_flags); - RETURN(rc); + + return rc; } static int osc_disconnect(struct obd_export *exp, int flags) @@ -2936,7 +2937,6 @@ static int osc_disconnect(struct obd_export *exp, int flags) struct obd_device *obd = class_exp2obd(exp); struct llog_ctxt *ctxt; int rc; - ENTRY; ctxt = llog_get_context(&obd->obd_llogs, LLOG_SIZE_REPL_CTXT); if (obd->u.cli.cl_conn_count == 1) @@ -2944,7 +2944,7 @@ static int osc_disconnect(struct obd_export *exp, int flags) llog_sync(ctxt, exp); rc = client_disconnect_export(exp, flags); - RETURN(rc); + return rc; } static int osc_import_event(struct obd_device *obd,