Re: [PATCH] Fix race in do_get_write_access()

2005-07-12 Thread Jan Kara
Hello, > On Mon, 2005-07-11 at 17:10, Jan Kara wrote: > > > attached patch should fix the following race: > ... > > and we have sent wrong data to disk... We now clean the dirty buffer > > flag under buffer lock in all cases and hence we know that whenever a buffer > > is starting to be jou

Re: [PATCH] Fix race in do_get_write_access()

2005-07-11 Thread Stephen C. Tweedie
Hi, On Mon, 2005-07-11 at 17:10, Jan Kara wrote: > attached patch should fix the following race: ... > and we have sent wrong data to disk... We now clean the dirty buffer > flag under buffer lock in all cases and hence we know that whenever a buffer > is starting to be journaled we either fi

[PATCH] Fix race in do_get_write_access()

2005-07-11 Thread Jan Kara
Hello, attached patch should fix the following race: Proc 1 Proc 2 __flush_batch() ll_rw_block() do_get_write_access() lock_buffer