Skip to content
  • Nick Piggin's avatar
    JFS is missing a memory barrier · 54af6233
    Nick Piggin authored
    
    
    JFS is missing a memory barrier needed to close the critical section before
    clearing the lock bit. Use lock bitops for this.
    
    unlock_page() has a second barrier after clearing the lock, which is
    required because it checks whether the waitqueue is active without locks.
    Such a barrier is not required here because the waitqueue spinlock is
    always taken (something to think about if performance is an issue).
    
    Signed-off-by: default avatarNick Piggin <npiggin@suse.de>
    Signed-off-by: default avatarDave Kleikamp <shaggy@linux.vnet.ibm.com>
    54af6233