X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=libcfs%2Flibcfs%2Fdebug.c;h=2b30ab0eb0698bfa9a4c7c47dfc4a1bf3abad1c5;hp=b059791572d78b6abd9ed63452bbefc6f0366974;hb=128137adfc539dd2dd92040c14a63ff27f969820;hpb=f6497eb3503b7efff823888ed76422db4e9e078e diff --git a/libcfs/libcfs/debug.c b/libcfs/libcfs/debug.c index b059791..2b30ab0 100644 --- a/libcfs/libcfs/debug.c +++ b/libcfs/libcfs/debug.c @@ -69,15 +69,8 @@ static int libcfs_param_debug_mb_set(const char *val, * RHEL6 does not support any kind of locking so we have to provide * our own */ -#if !defined(HAVE_MODULE_PARAM_LOCKING) && !defined(HAVE_KERNEL_PARAM_LOCK) - kernel_param_lock(THIS_MODULE); -#endif if (!*((unsigned int *)kp->arg)) { *((unsigned int *)kp->arg) = num; - -#if !defined(HAVE_MODULE_PARAM_LOCKING) && !defined(HAVE_KERNEL_PARAM_LOCK) - kernel_param_unlock(THIS_MODULE); -#endif return 0; } @@ -86,9 +79,6 @@ static int libcfs_param_debug_mb_set(const char *val, if (!rc) *((unsigned int *)kp->arg) = cfs_trace_get_debug_mb(); -#if !defined(HAVE_MODULE_PARAM_LOCKING) && !defined(HAVE_KERNEL_PARAM_LOCK) - kernel_param_unlock(THIS_MODULE); -#endif return rc; }