Details
Description
I just saw the below piece of code in Fsnamesystem ctor.
writeLock(); try { this.cacheManager = new CacheManager(this, conf, blockManager); } finally { writeUnlock(); }
It seems unnecessary to keep writeLock here. I am not sure if there is a clear reason to keep the lock.