Unionfs: support CONFIG_PREEMPT_RT
authorErez_Zadok <ezk@cs.sunysb.edu>
Fri, 24 Aug 2007 14:42:56 +0000 (10:42 -0400)
committerErez_Zadok <ezk@cs.sunysb.edu>
Fri, 24 Aug 2007 15:28:49 +0000 (11:28 -0400)
Use compat_rw_semaphore when using the real-time preemption patches.

Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
fs/unionfs/union.h

index 46d5f45062c4fb3a2a1e82d682fa25692e2dd8a8..c03d1f473e247bb5b64fa140a02006d3ab1b67b5 100644 (file)
@@ -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;
 };