Whamcloud - gitweb
b=22418 2.6.32 compat synchronize_rcu already defined
authorMikhail Pershin <tappro@sun.com>
Fri, 20 Aug 2010 16:29:06 +0000 (20:29 +0400)
committerMikhail Pershin <tappro@sun.com>
Fri, 20 Aug 2010 16:29:06 +0000 (20:29 +0400)
i=adilger
i=kalpak

lustre/include/linux/lustre_compat25.h

index 6498202..dcf399a 100644 (file)
@@ -627,8 +627,11 @@ static inline int ll_crypto_hmac(struct crypto_tfm *tfm,
 #endif /* HAVE_ASYNC_BLOCK_CIPHER */
 
 #ifndef HAVE_SYNCHRONIZE_RCU
+/* Linux 2.6.32 provides define when !CONFIG_TREE_PREEMPT_RCU */
+#ifndef synchronize_rcu
 #define synchronize_rcu() synchronize_kernel()
 #endif
+#endif
 
 #ifdef HAVE_FILE_REMOVE_SUID
 # define ll_remove_suid(file, mnt)       file_remove_suid(file)