buffer: memorder fix
Subsystems (2)
PATCH 1/1 buffer: memorder fix
Anyone mind telling me why unlock_buffer, unlike unlock_page, thinks it can clear the lock without ensuring the critical section is closed (ie. with a barrier)?
Signed-off-by Nick Piggin <[email protected]>
fs/buffer.c +1 -0
@@ -78,6 +78,7 @@ EXPORT_SYMBOL(__lock_buffer); void fastcall unlock_buffer(struct buffer_head *bh) { +smp_mb__before_clear_bit ();clear_buffer_locked (bh);smp_mb__after_clear_bit ();wake_up_bit (&bh->b_state, BH_Lock);
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>