Whamcloud - gitweb
Branch: b1_4
authorgreen <green>
Tue, 5 Jul 2005 08:32:23 +0000 (08:32 +0000)
committergreen <green>
Tue, 5 Jul 2005 08:32:23 +0000 (08:32 +0000)
Added forgotten comment and assertion from grouplock code.

lustre/ldlm/ldlm_extent.c

index ec35e3f..1422e53 100644 (file)
@@ -318,6 +318,12 @@ int ldlm_process_extent_lock(struct ldlm_lock *lock, int *flags, int first_enq,
         *err = ELDLM_OK;
 
         if (!first_enq) {
+                /* Careful observers will note that we don't handle -EWOULDBLOCK
+                 * here, but it's ok for a non-obvious reason -- compat_queue
+                 * can only return -EWOULDBLOCK if (flags & BLOCK_NOWAIT).
+                 * flags should always be zero here, and if that ever stops
+                 * being true, we want to find out. */
+                LASSERT(*flags == 0);
                 LASSERT(res->lr_tmp != NULL);
                 rc = ldlm_extent_compat_queue(&res->lr_granted, lock, 0, flags,
                                               err);