From e27913bf15c5a9f3cd8ec29d75ef393219962a66 Mon Sep 17 00:00:00 2001 From: Johann Lombardi Date: Wed, 27 Jan 2010 15:39:49 +0100 Subject: [PATCH] b=21815 lustre_hash_rehash_key() should use lh_read_unlock() lh_read_lock() is no-op if rehash is disabled, so we should use lh_read_unlock() in this function. This should not have any consequence, but better to fix it. --- lustre/obdclass/class_hash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lustre/obdclass/class_hash.c b/lustre/obdclass/class_hash.c index 1af2c0f..13bf2d6 100644 --- a/lustre/obdclass/class_hash.c +++ b/lustre/obdclass/class_hash.c @@ -740,7 +740,7 @@ void lustre_hash_rehash_key(lustre_hash_t *lh, void *old_key, void *new_key, write_lock(&new_lhb->lhb_rwlock); write_lock(&old_lhb->lhb_rwlock); } else { /* do nothing */ - read_unlock(&lh->lh_rwlock); + lh_read_unlock(lh); EXIT; return; } -- 1.8.3.1