Skip to content
Commit 311f08ac authored by Alex Elder's avatar Alex Elder Committed by Ben Myers
Browse files

xfs: memory barrier before wake_up_bit()



In xfs_ifunlock() there is a call to wake_up_bit() after clearing
the flush lock on the xfs inode.  This is not guaranteed to be safe,
as noted in the comments above wake_up_bit() beginning with:

    In order for this to function properly, as it uses
    waitqueue_active() internally, some kind of memory
    barrier must be done prior to calling this.


Signed-off-by: default avatarAlex Elder <elder@inktank.com>
Reviewed-by: default avatarDave Chinner <david@fromorbit.com>
Signed-off-by: default avatarBen Myers <bpm@sgi.com>
parent a21cd503
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment