Re: 2.6.23-git3 jfs/bio bug

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Randy Dunlap <randy.dunlap@...>
Cc: linux-kernel <linux-kernel@...>, Jens Axboe <jens.axboe@...>, Jeff Garzik <jgarzik@...>, Andrew Morton <akpm@...>, Linus Torvalds <torvalds@...>
Date: Saturday, October 13, 2007 - 1:58 pm

On Sat, 2007-10-13 at 10:25 -0700, Randy Dunlap wrote:

I don't have time to test this now, but the bio_endio patches ended up
removing some return statements that need to stay.  I think this should
fix it.

JFS: Bio cleanup: Replace missing return statements

commit 6712ecf8f648118c3363c142196418f89a510b90 removed some "return 0;"
statements, rather than changing them to null returns.

Signed-off-by: Dave Kleikamp <shaggy@linux.vnet.ibm.com>

diff --git a/fs/jfs/jfs_logmgr.c b/fs/jfs/jfs_logmgr.c
index ccfd029..15a3974 100644
--- a/fs/jfs/jfs_logmgr.c
+++ b/fs/jfs/jfs_logmgr.c
@@ -2234,6 +2234,8 @@ static void lbmIODone(struct bio *bio, int error)
 
 		/* wakeup I/O initiator */
 		LCACHE_WAKEUP(&bp->l_ioevent);
+
+		return;
 	}
 
 	/*
@@ -2258,6 +2260,7 @@ static void lbmIODone(struct bio *bio, int error)
 	if (bp->l_flag & lbmDIRECT) {
 		LCACHE_WAKEUP(&bp->l_ioevent);
 		LCACHE_UNLOCK(flags);
+		return;
 	}
 
 	tail = log->wqueue;

-- 
David Kleikamp
IBM Linux Technology Center

-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
2.6.23-git3 jfs/bio bug, Randy Dunlap, (Sat Oct 13, 1:25 pm)
Re: 2.6.23-git3 jfs/bio bug, Dave Kleikamp, (Sat Oct 13, 1:58 pm)
Re: 2.6.23-git3 jfs/bio bug, Jeff Garzik, (Sat Oct 13, 2:39 pm)
Re: 2.6.23-git3 jfs/bio bug, Linus Torvalds, (Sat Oct 13, 3:44 pm)