GIT: unionfs2-2.6.27.y: Unionfs: support CONFIG_PREEMPT_RT
Erez Zadok
ezk at fsl.cs.sunysb.edu
Thu Aug 12 23:16:56 EDT 2010
commit 86880d67b06ce04c6b0451f9242e460afe63bd03
Author: Erez_Zadok <ezk at cs.sunysb.edu>
Date: Fri Aug 24 10:42:56 2007 -0400
Unionfs: support CONFIG_PREEMPT_RT
Use compat_rw_semaphore when using the real-time preemption patches.
Signed-off-by: Erez Zadok <ezk at cs.sunysb.edu>
diff --git a/fs/unionfs/union.h b/fs/unionfs/union.h
index 3b555bc..f03143e 100644
--- a/fs/unionfs/union.h
+++ b/fs/unionfs/union.h
@@ -143,7 +143,11 @@ struct unionfs_sb_info {
* 2) any new operations do not execute until the currently
* running branch management operation completes
*/
+#ifdef CONFIG_PREEMPT_RT
+ struct compat_rw_semaphore rwsem;
+#else /* not CONFIG_PREEMPT_RT */
struct rw_semaphore rwsem;
+#endif /* not CONFIG_PREEMPT_RT */
int high_branch_id; /* last unique branch ID given */
struct unionfs_data *data;
};
More information about the unionfs-cvs
mailing list