Whamcloud - gitweb
b=19390 remove unneeded spinlock
authorLanden <landen@sun.com>
Mon, 5 Jul 2010 15:34:26 +0000 (23:34 +0800)
committerRobert Read <robert.read@oracle.com>
Tue, 6 Jul 2010 17:25:59 +0000 (10:25 -0700)
i=landen
i=johann

lustre/obdfilter/filter_io_26.c
lustre/quota/quota_context.c

index d6a356e..7b39704 100644 (file)
@@ -657,6 +657,7 @@ int filter_commitrw_write(struct obd_export *exp, struct obdo *oa,
         cleanup_phase = 2;
 
         DQUOT_INIT(inode);
+        fsfilt_check_slow(obd, now, "quota init");
 
         LOCK_INODE_MUTEX(inode);
         fsfilt_check_slow(obd, now, "i_mutex");
index 9f9035a..5a1ebc2 100644 (file)
@@ -1600,18 +1600,10 @@ lqs_key(cfs_hlist_node_t *hnode)
 static int
 lqs_compare(void *key, cfs_hlist_node_t *hnode)
 {
-        struct lustre_qunit_size *q;
-        int rc;
-        ENTRY;
-
-        LASSERT(key);
-        q = cfs_hlist_entry(hnode, struct lustre_qunit_size, lqs_hash);
-
-        cfs_spin_lock(&q->lqs_lock);
-        rc = (q->lqs_key == *((unsigned long long *)key));
-        cfs_spin_unlock(&q->lqs_lock);
+        struct lustre_qunit_size *q =
+                cfs_hlist_entry(hnode, struct lustre_qunit_size, lqs_hash);
 
-        RETURN(rc);
+        RETURN(q->lqs_key == *((unsigned long long *)key));
 }
 
 static void *