journal_lock_updates(9) centos man page | unix.com

Man Page: journal_lock_updates

Operating Environment: centos

Section: 9

JOURNAL_LOCK_UPDATES(9) 				     The Linux Journalling API					   JOURNAL_LOCK_UPDATES(9)

NAME
journal_lock_updates - establish a transaction barrier.
SYNOPSIS
void journal_lock_updates(journal_t * journal);
ARGUMENTS
journal Journal to establish a barrier on.
DESCRIPTION
This locks out any further updates from being started, and blocks until all existing updates have completed, returning only once the journal is in a quiescent state with no updates running. We do not use simple mutex for synchronization as there are syscalls which want to return with filesystem locked and that trips up lockdep. Also hibernate needs to lock filesystem but locked mutex then blocks hibernation. Since locking filesystem is rare operation, we use simple counter and waitqueue for locking.
AUTHORS
Roger Gammans <rgammans@computer-surgery.co.uk> Author. Stephen Tweedie <sct@redhat.com> Author.
COPYRIGHT
Kernel Hackers Manual 3.10 June 2014 JOURNAL_LOCK_UPDATES(9)
Related Man Pages
journal_get_undo_access(9) - centos
journal_abort(9) - centos
gfs2_jadd(8) - debian
struct_journal_s(9) - suse
mkfs.reiserfs(8) - debian
Similar Topics in the Unix Linux Community
Is UNIX an open source OS ?
Tar Command
CentOS 6 ran out of space, need to reclaim it
Controlling user input
Please Welcome Dave Munro to the Moderator Team!