diff options
author | Steven Whitehouse <swhiteho@redhat.com> | 2006-03-29 16:12:12 +0200 |
---|---|---|
committer | Steven Whitehouse <swhiteho@redhat.com> | 2006-03-29 16:12:12 +0200 |
commit | 484adff8a06cb5d952832f5487ae863f54c0fb69 (patch) | |
tree | e43a9387a3a313cfdb4a34298d532dc7a1b7391c /lib | |
parent | [DLM] Look for "nodir" in the lockspace mount options (diff) | |
download | linux-484adff8a06cb5d952832f5487ae863f54c0fb69.tar.xz linux-484adff8a06cb5d952832f5487ae863f54c0fb69.zip |
[GFS2] Update locking in log.c
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 <swhiteho@redhat.com>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions