[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20080507004035.58041DDE03@ozlabs.org>
Date: Wed, 07 May 2008 10:38:55 +1000
From: Benjamin Herrenschmidt <benh@...nel.crashing.org>
To: <clameter@....com>
CC: <linux-kernel@...r.kernel.org>,
Andrew Morton <akpm@...ux-foundation.org>
Subject: [PATCH] slub: Fix atomic usage in any_slab_objects()
any_slab_objects() does an atomic_read on an atomic_long_t, this
fixes it to use atomic_long_read instead.
Signed-off-by: Benjamin Herrenschmidt <benh@...nel.crashing.org>
---
mm/slub.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- linux-work.orig/mm/slub.c 2008-05-07 10:37:04.000000000 +1000
+++ linux-work/mm/slub.c 2008-05-07 10:37:05.000000000 +1000
@@ -3762,7 +3762,7 @@ static int any_slab_objects(struct kmem_
if (!n)
continue;
- if (atomic_read(&n->total_objects))
+ if (atomic_long_read(&n->total_objects))
return 1;
}
return 0;
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists