X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fmdt%2Fmdt_identity.c;h=7d55a0ee3abc31282ac5e4b7416ed7a456142877;hp=235444c678b0eea23e52f36c642b3119a80ad1fa;hb=e8273a3dd71c4e6ab5ca9de3fbfbc0f7603d6930;hpb=7334a2d33cc4cf4cda0c81b126c4cb8ab28a888d diff --git a/lustre/mdt/mdt_identity.c b/lustre/mdt/mdt_identity.c index 235444c..7d55a0e 100644 --- a/lustre/mdt/mdt_identity.c +++ b/lustre/mdt/mdt_identity.c @@ -113,7 +113,7 @@ static int mdt_identity_do_upcall(struct upcall_cache *cache, /* There is race condition: * "uc_upcall" was changed just after "is_identity_get_disabled" check. */ - read_lock(&cache->uc_upcall_rwlock); + down_read(&cache->uc_upcall_rwsem); CDEBUG(D_INFO, "The upcall is: '%s'\n", cache->uc_upcall); if (unlikely(!strcmp(cache->uc_upcall, "NONE"))) { @@ -141,8 +141,8 @@ static int mdt_identity_do_upcall(struct upcall_cache *cache, } EXIT; out: - read_unlock(&cache->uc_upcall_rwlock); - return rc; + up_read(&cache->uc_upcall_rwsem); + return rc; } static int mdt_identity_parse_downcall(struct upcall_cache *cache,