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>
Sun, 6 Mar 2011 08:42:40 +0000 (03:42 -0500)
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 3b555bc99859bdc6033504f9308f976b1fb98594..f03143ef1454a176975ea3641cd0344f7dd2f41b 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;
 };