diff options
| author | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-11-03 21:38:29 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-11-03 21:38:29 -0800 |
| commit | 59847ec6c0c246d98754762324757a831dfd16d0 (patch) | |
| tree | a324b80b17c2850b53ecc17cad1527ed0a3425fd /fs/buffer.c | |
| parent | c9e6b4d939b1cd83e0d60387586bbabb4be240f9 (diff) | |
Make "unlock_buffer()" use the optimized "smp_mb__after_clear_bit()".
"clear_buffer_locked()" is just a nicer name for a clear-bit, and
on x86 (and others) we don't need any expensive memory barriers
after that.
Diffstat (limited to 'fs/buffer.c')
| -rw-r--r-- | fs/buffer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/buffer.c b/fs/buffer.c index cb277370c9cc..0d1cc3e09aee 100644 --- a/fs/buffer.c +++ b/fs/buffer.c @@ -76,7 +76,7 @@ EXPORT_SYMBOL(__lock_buffer); void fastcall unlock_buffer(struct buffer_head *bh) { clear_buffer_locked(bh); - smp_mb(); + smp_mb__after_clear_bit(); wake_up_bit(&bh->b_state, BH_Lock); } |
