lkml.org 
[lkml]   [2008]   [May]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [announce] "kill the Big Kernel Lock (BKL)" tree
Hi Ingo,
On Wed, May 14, 2008 at 09:41:22PM +0200, Ingo Molnar wrote:
> Subject: remove bkl: reiserfs fix
> From: Ingo Molnar <mingo@elte.hu>
> Date: Wed May 14 16:26:36 CEST 2008
>
> avoid j_commit_lock deadlock. Since the down() can block it is
> safe to drop the BKL here.
>
> Signed-off-by: Ingo Molnar <mingo@elte.hu>
> ---
> fs/reiserfs/journal.c | 2 ++
> fs/super.c | 2 ++
> 2 files changed, 4 insertions(+)
>
> Index: linux/fs/reiserfs/journal.c
> ===================================================================
> --- linux.orig/fs/reiserfs/journal.c
> +++ linux/fs/reiserfs/journal.c
> @@ -1044,8 +1044,10 @@ static int flush_commit_list(struct supe
> }
> }
>
> +// unlock_kernel();
^^^^
> /* make sure nobody is trying to flush this one at the same time */
> down(&jl->j_commit_lock);
> +// lock_kernel();
^^^^
> if (!journal_list_still_alive(s, trans_id)) {
> up(&jl->j_commit_lock);
> goto put_jl;
Must be a typo?

Regards,
Frederik


\
 
 \ /
  Last update: 2008-05-14 22:09    [W:0.055 / U:1.900 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site