[SSI] openssi/kernel/include/asm-i386 semaphore.h,1.7,1.8
Roger Tsang <[email protected]> Mon, 25 Oct 2010 05:56:25 +0000
| Newsgroups | gmane.linux.cluster.ssic.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/ssic-linux/openssi/kernel/include/asm-i386
In directory sfp-cvsdas-3.v30.ch3.sourceforge.com:/tmp/cvs-serv12949/include/asm-i386
Modified Files:
Tag: OPENSSI-FC
semaphore.h
Log Message:
- Hide i_sem flusher. Add new functions set_sem_flusher() and unset_sem_flusher().
- When setting sem_flushing() for PFS inode do the same for CFS inode because cfs_writepages() and cfs_wait_on_write_congestion() tests sem_flushing() on CFS inode. (#ifdef CFS_FILE_WRITE_LIVELOCK_FIX)
cluster/ssi/cfs/proc.c | 37 ++++++++++++++++++++++++++++++++++-
cluster/ssi/cfs/vfs.c | 32 ------------------------------
cluster/ssi/cfs/write.c | 8 ++++++-
include/asm-i386/semaphore.h | 10 +++++++++
4 files changed, 53 insertions(+), 34 deletions(-)
Index: semaphore.h
===================================================================
RCS file: /cvsroot/ssic-linux/openssi/kernel/include/asm-i386/semaphore.h,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- semaphore.h 27 Oct 2009 03:18:30 -0000 1.7
+++ semaphore.h 25 Oct 2010 05:56:23 -0000 1.8
@@ -147,6 +147,16 @@
{
return (sem->flusher == current);
}
+
+static inline void set_sem_flushing(struct semaphore *sem)
+{
+ sem->flusher = current;
+}
+
+static inline void unset_sem_flushing(struct semaphore *sem)
+{
+ sem->flusher = NULL;
+}
#endif
#endif
------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store
http://p.sf.net/sfu/nokia-dev2dev