Skip to contentSkip to conversation

Add lock annotation for __mb_cache_entry_release_unlock

PATCH New Josh Triplett 1 participant 1 message Jul 25, 2006 VFS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Add lock annotation for __mb_cache_entry_release_unlock

__mb_cache_entry_release_unlock releases mb_cache_spinlock, so annotate it accordingly.

---
 fs/mbcache.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
fs/mbcache.c +1 -0
index e4fde1a..0ff7125 100644
@@ -160,6 +160,7 @@ __mb_cache_entry_forget(struct mb_cache_
 
 static void
 __mb_cache_entry_release_unlock(struct mb_cache_entry *ce)
+	__releases(mb_cache_spinlock)
 {
 	/* Wake up all processes queuing for this cache entry. */
 	if (ce->e_queued)