login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
May
»
14
Re: [patch 2/3] [PATCH] reiserfs: convert j_flush_sem to mutex
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
[view in full thread]
From:
Kamalesh Babulal <kamalesh@...>
To: Jeff Mahoney <jeffm@...>
Cc: <linux-kernel@...>, <reiserfs-devel@...>, Andrew Morton <akpm@...>
Subject:
Re: [patch 2/3] [PATCH] reiserfs: convert j_flush_sem to mutex
Date: Wednesday, May 14, 2008 - 2:22 pm
Jeff Mahoney wrote:
quoted text
> Jeff Mahoney wrote: >> j_flush_sem is a semaphore but uses it as if it were a mutex. This >> patch converts it to a mutex. >> --- a/fs/reiserfs/journal.c >> +++ b/fs/reiserfs/journal.c >> @@ -1411,8 +1411,8 @@ static int flush_journal_list(struct sup >> >> /* if flushall == 0, the lock is already held */ >> if (flushall) { >> - down(&journal->j_flush_sem); >> - } else if (!down_trylock(&journal->j_flush_sem)) { >> + mutex_lock(&journal->j_flush_mutex); >> + } else if (!mutex_trylock(&journal->j_flush_mutex)) { >> BUG(); >> } > > Oops. This chunk didn't get refreshed, here's the right one. > > -Jeff
Thanks, the patch resolves the kernel bug. Tested-by: Kamalesh Babulal <kamalesh@linux.vnet.ibm.com>
quoted text
> Signed-off-by: Jeff Mahoney <jeffm@suse.com> > --- > fs/reiserfs/journal.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > --- a/fs/reiserfs/journal.c > +++ b/fs/reiserfs/journal.c > @@ -1410,7 +1410,7 @@ static int flush_journal_list(struct sup > /* if flushall == 0, the lock is already held */ > if (flushall) { > mutex_lock(&journal->j_flush_mutex); > - } else if (!mutex_trylock(&journal->j_flush_mutex)) { > + } else if (mutex_trylock(&journal->j_flush_mutex)) { > BUG(); > } >
-- Thanks & Regards, Kamalesh Babulal, Linux Technology Center, IBM, ISTL. --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
Messages in current thread:
[patch 2/3] [PATCH] reiserfs: convert j_flush_sem to mutex
, Jeff Mahoney
, (Thu May 8, 2:35 am)
Re: [patch 2/3] [PATCH] reiserfs: convert j_flush_sem to mutex
, Jeff Mahoney
, (Wed May 14, 10:41 am)
Re: [patch 2/3] [PATCH] reiserfs: convert j_flush_sem to mutex
, Kamalesh Babulal
, (Wed May 14, 2:22 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
H. Peter Anvin
Re: [rft] s2ram wakeup moves to .c, could fix few machines
Greg Kroah-Hartman
[PATCH 002/196] Chinese: rephrase English introduction in HOWTO
Ingo Molnar
[patch] PID namespace design bug, workaround
Tarkan Erimer
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
git
:
linux-netdev
:
Eric Dumazet
Re: Multicast packet loss
Gerrit Renker
[PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side)
David Miller
[GIT]: Networking
Jarek Poplawski
Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
11 users
and
816 guests
online.
Online users
zeekec
acne411
harleyhors11
kidsnightviskk
cbfortunexfen
cheatingspouse
brianr705
herpesmedicati
webtdccv
hardcoregraphi
silkscarfdyesj
Syndicate