OpenVZ Forum


Home » Mailing lists » Devel » Re: Lost JBD fix
Re: Lost JBD fix [message #14865] Thu, 12 July 2007 06:50 Go to next message
Jens Axboe is currently offline  Jens Axboe
Messages: 30
Registered: October 2006
Member
On Wed, Jul 11 2007, Chuck Ebbert wrote:
> On 07/09/2007 02:14 PM, Jan Kara wrote:
> > Hi Andrew,
> >
> > it seems we've accidentally lost one JBD fix (probably it was my mistake
> > when rediffing some checkpointing changes) as Kirill has noted. A transaction
> > can currently be released when there are still some buffers on one of its
> > checkpointing lists. Attached patch should fix it (it still seems to apply
> > fine). Please apply it. Thanks.
> >
> > Honza
> >
> >
> > ------------------------------------------------------------ ------------
> >
> > We have to check that also the second checkpoint list is non-empty before
> > dropping the transaction.
> >
> > Signed-off-by: Jan Kara <jack@suse.cz>
> >
> > diff -rupX /home/jack/.kerndiffexclude linux-2.6.16-rc1/fs/jbd/commit.c linux-2.6.16-rc1-1-checkpoint-fix/fs/jbd/commit.c
> > --- linux-2.6.16-rc1/fs/jbd/commit.c 2006-01-15 00:20:12.000000000 +0100
> > +++ linux-2.6.16-rc1-1-checkpoint-fix/fs/jbd/commit.c 2006-01-17 23:35:19.000000000 +0100
> > @@ -829,7 +829,8 @@ restart_loop:
> > journal->j_committing_transaction = NULL;
> > spin_unlock(&journal->j_state_lock);
> >
> > - if (commit_transaction->t_checkpoint_list == NULL) {
> > + if (commit_transaction->t_checkpoint_list == NULL &&
> > + commit_transaction->t_checkpoint_io_list == NULL) {
> > __journal_drop_transaction(journal, commit_transaction);
> > } else {
> > if (journal->j_checkpoint_transactions == NULL) {
>
> Critical bugfix -- 2.6.22-stable (no earlier versions) should get
> this too, right?

And don't forget that we have a jbd2/ clone as well, for the hugely
succesful ext4 project as well.

--
Jens Axboe
Re: Lost JBD fix [message #14867 is a reply to message #14865] Thu, 12 July 2007 06:56 Go to previous message
Andrew Morton is currently offline  Andrew Morton
Messages: 127
Registered: December 2005
Senior Member
On Thu, 12 Jul 2007 08:50:11 +0200 Jens Axboe <jens.axboe@oracle.com> wrote:

> > > - if (commit_transaction->t_checkpoint_list == NULL) {
> > > + if (commit_transaction->t_checkpoint_list == NULL &&
> > > + commit_transaction->t_checkpoint_io_list == NULL) {
> > > __journal_drop_transaction(journal, commit_transaction);
> > > } else {
> > > if (journal->j_checkpoint_transactions == NULL) {
> >
> > Critical bugfix -- 2.6.22-stable (no earlier versions) should get
> > this too, right?
>
> And don't forget that we have a jbd2/ clone as well, for the hugely
> succesful ext4 project as well.

Yeah, I did that. Again.
Previous Topic: containers (was Re: -mm merge plans for 2.6.23)
Next Topic: [PATCH 5/6] Use task_pid() to find leader's pid
Goto Forum:
  


Current Time: Wed Aug 14 14:40:18 GMT 2024

Total time taken to generate the page: 0.02817 seconds