patch-2.4.0-test3 linux/drivers/char/ip2/i2ellis.h

Next file: linux/drivers/char/ip2/i2lib.c
Previous file: linux/drivers/char/ip2/i2ellis.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.0-test2/linux/drivers/char/ip2/i2ellis.h linux/drivers/char/ip2/i2ellis.h
@@ -352,7 +352,7 @@
 
 	// Ring-buffers of channel structures whose channels have particular needs.
 
-	spinlock_t	Fbuf_spinlock;
+	rwlock_t	Fbuf_spinlock;
 	volatile
 	unsigned short i2Fbuf_strip;	// Strip index
 	volatile 
@@ -360,7 +360,7 @@
 	void  *i2Fbuf[CH_QUEUE_SIZE];	// An array of channel pointers
 									// of channels who need to send
 									// flow control packets.
-	spinlock_t	Dbuf_spinlock;
+	rwlock_t	Dbuf_spinlock;
 	volatile
 	unsigned short i2Dbuf_strip;	// Strip index
 	volatile
@@ -368,7 +368,7 @@
 	void  *i2Dbuf[CH_QUEUE_SIZE];	// An array of channel pointers
 									// of channels who need to send
 									// data or in-line command packets.
-	spinlock_t	Bbuf_spinlock;
+	rwlock_t	Bbuf_spinlock;
 	volatile
 	unsigned short i2Bbuf_strip;	// Strip index
 	volatile
@@ -397,8 +397,8 @@
 	unsigned long debugInlineCount;
 	unsigned long debugBypassCount;
 	
-	spinlock_t	read_fifo_spinlock;
-	spinlock_t	write_fifo_spinlock;
+	rwlock_t	read_fifo_spinlock;
+	rwlock_t	write_fifo_spinlock;
 
 #ifdef	CONFIG_DEVFS_FS
 	/* Device handles into devfs */

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)