X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fosc%2Fosc_request.c;h=0103e5304ff13cd882232dc7dc2af4397b29e9d4;hp=241f9e0d9ceab196dfe3d99d18086cab51211c50;hb=8c47378b057e72d6125f4baffe8721e0734d0d3f;hpb=4dd31baae9a73502c5c7bb5c0962fd703e231fd5 diff --git a/lustre/osc/osc_request.c b/lustre/osc/osc_request.c index 241f9e0..0103e53 100644 --- a/lustre/osc/osc_request.c +++ b/lustre/osc/osc_request.c @@ -2943,10 +2943,10 @@ static int osc_iocontrol(unsigned int cmd, struct obd_export *exp, int len, int err = 0; ENTRY; - if (!cfs_try_module_get(THIS_MODULE)) { - CERROR("Can't get module. Is it alive?"); - return -EINVAL; - } + if (!try_module_get(THIS_MODULE)) { + CERROR("Can't get module. Is it alive?"); + return -EINVAL; + } switch (cmd) { case OBD_IOC_LOV_GET_CONFIG: { char *buf; @@ -3017,7 +3017,7 @@ static int osc_iocontrol(unsigned int cmd, struct obd_export *exp, int len, GOTO(out, err = -ENOTTY); } out: - cfs_module_put(THIS_MODULE); + module_put(THIS_MODULE); return err; }