Whamcloud - gitweb
b=22035 workaround patch
authorhongchao.zhang <Hongchao.Zhang@Sun.COM>
Mon, 8 Mar 2010 10:15:12 +0000 (18:15 +0800)
committerJohann Lombardi <johann@sun.com>
Fri, 12 Mar 2010 14:06:10 +0000 (15:06 +0100)
disable the per-thread data (current->journal_info)
containing the lock info during I/O to work around
the issue for short tem

i=hongchao.zhang@sun.com

lustre/llite/rw.c

index 8e314c3..526facf 100644 (file)
@@ -1343,14 +1343,19 @@ static int index_in_window(unsigned long index, unsigned long point,
 
 struct ll_thread_data *ll_td_get()
 {
+#if 0
         struct ll_thread_data *ltd = current->journal_info;
 
         LASSERT(ltd == NULL || ltd->ltd_magic == LTD_MAGIC);
         return ltd;
+#else
+        return NULL;
+#endif
 }
 
 void ll_td_set(struct ll_thread_data *ltd)
 {
+#if 0
         if (ltd == NULL) {
                 ltd = current->journal_info;
                 LASSERT(ltd == NULL || ltd->ltd_magic == LTD_MAGIC);
@@ -1361,6 +1366,7 @@ void ll_td_set(struct ll_thread_data *ltd)
         LASSERT(current->journal_info == NULL);
         LASSERT(ltd->ltd_magic == LTD_MAGIC);
         current->journal_info = ltd;
+#endif
 }
 
 static struct ll_readahead_state *ll_ras_get(struct file *f)