Commit 484adff8 authored by Steven Whitehouse's avatar Steven Whitehouse
Browse files

[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: default avatarSteven Whitehouse <swhiteho@redhat.com>
parent 7aabffca
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment