Skip to contentSkip to conversation

A question about function jbd2__journal_restart()

DISCUSSION Xue jiufei 2 participants 2 messages Apr 14, 2015 OCFS2

lore
Share & tools
lore

Xue jiufei

author
#0 lore raw

Hi all,
I have a question about function jbd2__journal_restart().
If we call this function when there's not more credits,
it may commit the handle's transaction and start another one. So a handle can be attached to 2 transaction and can not ensure the consistency. It is the caller's responsibility to keep things consistently before call jbd2__journal_restart(), right?

Thanks very much.

#1 lore raw

Hello,

Quoted 6 lines · Xue jiufei

I have a question about function jbd2__journal_restart().
If we call this function when there's not more credits,
it may commit the handle's transaction and start another one. So a handle can be attached to 2 transaction and can not ensure the consistency. It is the caller's responsibility to keep things consistently before call jbd2__journal_restart(), right?

Correct.

Honza

Signature · 2 lines
Jan Kara <[email protected]>
SUSE Labs, CR