Staging: lustre: Replace LPROCFS_CLIMP_EXIT with up_read
[deliverable/linux.git] / drivers / staging / lustre / lustre / ptlrpc / lproc_ptlrpc.c
index afab0dee7a5ce0603bb26b1636c0dbb58b3aae66..2aecab21e3e1aaa1a63c3fb7e053934ded337ee4 100644 (file)
@@ -1197,7 +1197,7 @@ int lprocfs_wr_ping(struct file *file, const char __user *buffer,
                return rc;
 
        req = ptlrpc_prep_ping(obd->u.cli.cl_import);
-       LPROCFS_CLIMP_EXIT(obd);
+       up_read(&obd->u.cli.cl_sem);
        if (req == NULL)
                return -ENOMEM;
 
@@ -1291,7 +1291,7 @@ int lprocfs_rd_pinger_recov(struct seq_file *m, void *n)
                return rc;
 
        seq_printf(m, "%d\n", !imp->imp_no_pinger_recover);
-       LPROCFS_CLIMP_EXIT(obd);
+       up_read(&obd->u.cli.cl_sem);
 
        return 0;
 }
@@ -1319,7 +1319,7 @@ int lprocfs_wr_pinger_recov(struct file *file, const char __user *buffer,
        spin_lock(&imp->imp_lock);
        imp->imp_no_pinger_recover = !val;
        spin_unlock(&imp->imp_lock);
-       LPROCFS_CLIMP_EXIT(obd);
+       up_read(&obd->u.cli.cl_sem);
 
        return count;
 
This page took 0.025898 seconds and 5 git commands to generate.