public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Re: Possible patch for reiserfs-3.6.22 against 2.4.0-test12
@ 2000-12-13  1:18 Steven Cole
  2000-12-13  1:22 ` Adam Sampson
  0 siblings, 1 reply; 5+ messages in thread
From: Steven Cole @ 2000-12-13  1:18 UTC (permalink / raw)
  To: linux-kernel; +Cc: atsl, mason

Adam Sampson wrote:
>The latest reiserfs patch on ftp.namesys.com causes compilation errors
>against test12 due to the task queue changes. Does this look correct?
[patch snipped]
> 
>It does at least compile with these changes, but I haven't yet tested
>it. Looking at run_task_queue, it would appear that the while() is now
>redundant, but could someone who knows confirm/deny this?

Chris Mason is working on this.  In an earlier exchange on reiserfs-list:

Chris Mason wrote:
>I'll try to hack out a patch while I'm waiting, but the task struct changes
>are the least of our problems.  They've changed ll_rw_block to always set
>the end_io handler to the default one.  Since the journal code relies on
>being able to use its own end_io handler, this isn't good for us.  There is
>a new func we need to use instead, so I'm migrating over.
>
>Thew new stuff should be faster, so I won't complain ;-)

Your patch will probably let journal.c get compiled, but it might be dangerous
to use considering what Chris said.

Steven
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 5+ messages in thread
* Possible patch for reiserfs-3.6.22 against 2.4.0-test12
@ 2000-12-13  0:47 Adam Sampson
  2000-12-13 13:14 ` Carlos E. Gorges
  0 siblings, 1 reply; 5+ messages in thread
From: Adam Sampson @ 2000-12-13  0:47 UTC (permalink / raw)
  To: linux-kernel

Hiya.

The latest reiserfs patch on ftp.namesys.com causes compilation errors
against test12 due to the task queue changes. Does this look correct?

--- fs/reiserfs/journal.c.orig	Wed Dec 13 00:13:00 2000
+++ fs/reiserfs/journal.c	Wed Dec 13 00:40:52 2000
@@ -1762,7 +1762,7 @@
   ct->p_s_sb = p_s_sb ;
   ct->jindex = jindex ;
   ct->task_done = NULL ;
-  ct->task.next = NULL ;
+  INIT_LIST_HEAD(&ct->task.list);
   ct->task.sync = 0 ;
   ct->task.routine = (void *)(void *)reiserfs_journal_commit_task_func ; 
   ct->self = ct ;
@@ -1813,7 +1813,7 @@
   lock_kernel() ;
   while(1) {
 
-    while(reiserfs_commit_thread_tq) {
+    while(TQ_ACTIVE(reiserfs_commit_thread_tq)) {
       run_task_queue(&reiserfs_commit_thread_tq) ;
     }
 
It does at least compile with these changes, but I haven't yet tested
it. Looking at run_task_queue, it would appear that the while() is now
redundant, but could someone who knows confirm/deny this?

-- 

Adam Sampson
azz@gnu.org

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2000-12-13 15:39 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-12-13  1:18 Possible patch for reiserfs-3.6.22 against 2.4.0-test12 Steven Cole
2000-12-13  1:22 ` Adam Sampson
  -- strict thread matches above, loose matches on Subject: below --
2000-12-13  0:47 Adam Sampson
2000-12-13 13:14 ` Carlos E. Gorges
2000-12-13 15:08   ` Jorge Boncompte (DTI2)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox