lkml.org 
[lkml]   [2004]   [May]   [21]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Subject[PATCH 2.6.6-mm4] ring_info spinlock initialization
FromFabF <>
DateFri, 21 May 2004 21:18:54 +0200
Hi,
	ring_info spinlock was not initialized in INIT_KIOCTX.

Regards,
FabF
diff -Naur orig/include/linux/init_task.h edited/include/linux/init_task.h
--- orig/include/linux/init_task.h	2004-05-10 04:32:00.000000000 +0200
+++ edited/include/linux/init_task.h	2004-05-21 14:26:56.000000000 +0200
@@ -29,6 +29,7 @@
 	.ctx_lock	= SPIN_LOCK_UNLOCKED,		\
 	.reqs_active	= 0U,				\
 	.max_reqs	= ~0U,				\
+	.ring_info.ring_lock = SPIN_LOCK_UNLOCKED	\
 }
 
 #define INIT_MM(name) \
\
 
 \ /
  Last update: 2005-03-22 13:03    [from the cache]
©2003-2008