From fd094a8f96dd7dc5f7a1a350a3ba35b44784de31 Mon Sep 17 00:00:00 2001 From: Matthew Dillon Date: Sat, 21 Aug 2010 14:21:00 -0700 Subject: [PATCH] HAMMER VFS - Minor iterator change for pid hash * Make the iterator volatile so the compiler only loads it once. --- sys/vfs/hammer/hammer_inode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/vfs/hammer/hammer_inode.c b/sys/vfs/hammer/hammer_inode.c index 7060a5ce74..4678bf723d 100644 --- a/sys/vfs/hammer/hammer_inode.c +++ b/sys/vfs/hammer/hammer_inode.c @@ -3206,7 +3206,7 @@ hammer_inode_inostats(hammer_mount_t hmp, pid_t pid) struct hammer_inostats *stats; int delta; int chain; - static int iterator; /* we don't care about MP races */ + static volatile int iterator; /* we don't care about MP races */ /* * Chain up to 4 times to find our entry. -- 2.41.0