]> Pileus Git - ~andy/linux/blobdiff - drivers/staging/lustre/lustre/lclient/lcommon_misc.c
staging/lustre/hsm: Add hsm_release feature.
[~andy/linux] / drivers / staging / lustre / lustre / lclient / lcommon_misc.c
index 2b4dbeebcd5d64a495f1d661947cce5f62594cc8..e04c2d37c249fb83d6fe599336ff53f93e15a1c4 100644 (file)
@@ -140,7 +140,9 @@ int cl_get_grouplock(struct cl_object *obj, unsigned long gid, int nonblock,
 
        rc = cl_io_init(env, io, CIT_MISC, io->ci_obj);
        if (rc) {
-               LASSERT(rc < 0);
+               /* Does not make sense to take GL for released layout */
+               if (rc > 0)
+                       rc = -ENOTSUPP;
                cl_env_put(env, &refcheck);
                return rc;
        }