|
@@ -76,8 +76,7 @@ EXPORT_SYMBOL(__lock_buffer);
|
|
|
|
|
|
void unlock_buffer(struct buffer_head *bh)
|
|
void unlock_buffer(struct buffer_head *bh)
|
|
{
|
|
{
|
|
- smp_mb__before_clear_bit();
|
|
|
|
- clear_buffer_locked(bh);
|
|
|
|
|
|
+ clear_bit_unlock(BH_Lock, &bh->b_state);
|
|
smp_mb__after_clear_bit();
|
|
smp_mb__after_clear_bit();
|
|
wake_up_bit(&bh->b_state, BH_Lock);
|
|
wake_up_bit(&bh->b_state, BH_Lock);
|
|
}
|
|
}
|