f2fs: use sbi->write_mutex for write bios
authorJaegeuk Kim <jaegeuk.kim@samsung.com>
Mon, 18 Nov 2013 08:16:17 +0000 (17:16 +0900)
committerJaegeuk Kim <jaegeuk.kim@samsung.com>
Mon, 23 Dec 2013 01:18:01 +0000 (10:18 +0900)
commit971767caf632190f77a40b4011c19948232eed75
tree2a3eb454e7924271978932a81b825b1b0136db98
parent7d5e510944ce60ef0c6c2300a58547679df76db7
f2fs: use sbi->write_mutex for write bios

This patch removes an unnecessary semaphore (i.e., sbi->bio_sem).
There is no reason to use the semaphore when f2fs submits read and write IOs.
Instead, let's use a write mutex and cover the sbi->bio[] by the lock.

Change log from v1:
 o split write_mutex suggested by Chao Yu

Chao described,
"All DATA/NODE/META bio buffers in superblock is protected by
'sbi->write_mutex', but each bio buffer area is independent, So we
should split write_mutex to three for DATA/NODE/META."

Signed-off-by: Chao Yu <chao2.yu@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
fs/f2fs/data.c
fs/f2fs/f2fs.h
fs/f2fs/segment.c
fs/f2fs/super.c
This page took 0.054084 seconds and 5 git commands to generate.