Whamcloud - gitweb
b=19390 Remove unneeded spinlock
authorLanden <landen@sun.com>
Fri, 7 May 2010 01:50:19 +0000 (09:50 +0800)
committerjohann <johann@granier.local>
Fri, 7 May 2010 21:22:17 +0000 (23:22 +0200)
i=landen
i=johann

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

index eb0badf..e78eaca 100644 (file)
@@ -677,6 +677,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 aca504f..ea45293 100644 (file)
@@ -1485,18 +1485,10 @@ lqs_key(struct hlist_node *hnode)
 static int
 lqs_compare(void *key, struct hlist_node *hnode)
 {
-        struct lustre_qunit_size *q;
-        int rc;
-        ENTRY;
-
-        LASSERT(key);
-        q = hlist_entry(hnode, struct lustre_qunit_size, lqs_hash);
-
-        spin_lock(&q->lqs_lock);
-        rc = (q->lqs_key == *((unsigned long long *)key));
-        spin_unlock(&q->lqs_lock);
+        struct lustre_qunit_size *q =
+            hlist_entry(hnode, struct lustre_qunit_size, lqs_hash);
 
-        RETURN(rc);
+        RETURN(q->lqs_key == *((unsigned long long *)key));
 }
 
 static void *