Linux Headquarters
[ Register ]
[ About us ] [ Home Page ]

[ Kernel ] [ Documentation ] [ Links ] [ Books ]

Kernel v2.4.17-pre8 /fs/block_dev.c

Filename:/fs/block_dev.c
Lines Added:1
Lines Deleted:1
Also changed in: (Previous) 2.4.17-pre7  2.4.17-pre6  2.4.15-greased-turkey  2.4.15-pre9  2.4.14  2.4.14-pre8 
(Following) 2.4.17-rc1  2.4.17-rc2  2.4.17  2.4.18-pre4  2.4.18-pre5  2.4.18-pre6 

Location
[  2.4.17-pre8
  [  fs
     o  block_dev.c

Patch

diff -Naur -X /home/marcelo/lib/dontdiff linux-2.4.16/fs/block_dev.c linux/fs/block_dev.c
--- linux-2.4.16/fs/block_dev.c   Mon Nov 26 10:35:00 2001
+++ linux/fs/block_dev.c   Fri Dec  7 18:58:23 2001
@@ -234,7 +234,7 @@
 #define HASH_SIZE   (1UL << HASH_BITS)
 #define HASH_MASK   (HASH_SIZE-1)
 static struct list_head bdev_hashtable[HASH_SIZE];
-static spinlock_t bdev_lock = SPIN_LOCK_UNLOCKED;
+static spinlock_t bdev_lock __cacheline_aligned_in_smp = SPIN_LOCK_UNLOCKED;
 static kmem_cache_t * bdev_cachep;
 
 #define alloc_bdev() \


Comments: webmaster (at) linuxhq.com.
Advertising: banners (at) linuxhq.com.
Compilation ©1998-2008 Linux Headquarters, Inc.