]> Git Repo - linux.git/commitdiff
[GFS2] Update locking in log.c
authorSteven Whitehouse <[email protected]>
Wed, 29 Mar 2006 14:12:12 +0000 (09:12 -0500)
committerSteven Whitehouse <[email protected]>
Wed, 29 Mar 2006 14:12:12 +0000 (09:12 -0500)
Replace the lock_for_trans()/lock_for_flush() functions with an rwsem.
In fact the sd_log_flush_lock becomes an rwsem (the write part of it)
and is extended slightly to cover everything that the lock_for_flush()
used to cover. The read part of the lock is instead of lock_for_trans().

This corrects the races in the original code and reduces the code size.

Signed-off-by: Steven Whitehouse <[email protected]>

No differences found
This page took 0.04663 seconds and 4 git commands to generate.