]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: remove unnecessary memory barrier in btrfs_sync_log()
authorMiao Xie <miaox@cn.fujitsu.com>
Thu, 20 Feb 2014 10:08:55 +0000 (18:08 +0800)
committerJosef Bacik <jbacik@fb.com>
Mon, 10 Mar 2014 19:16:41 +0000 (15:16 -0400)
commitbee50278ef5e8d895cc698d24c885ae2a19f1be0
treea9e5db4bb0cdd568002b735aa795109e9f9d4f32
parentf753337d14d11b20e6458d4c34f0b5175ac6e78a
Btrfs: remove unnecessary memory barrier in btrfs_sync_log()

Mutex unlock implies certain memory barriers to make sure all the memory
operation completes before the unlock, and the next mutex lock implies memory
barriers to make sure the all the memory happens after the lock. So it is
a full memory barrier(smp_mb), we needn't add memory barriers. Remove them.

Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
Signed-off-by: Josef Bacik <jbacik@fb.com>
fs/btrfs/tree-log.c