Re: [f2fs-dev] [PATCH 2/2] f2fs: use sbi->wr_mutex for write bios

2013-11-18 Thread Jaegeuk Kim
Hi Gu, 2013-11-18 (월), 17:21 +0800, Gu Zheng: > Hi Kim, > On 11/18/2013 05:12 PM, Jaegeuk Kim wrote: > > > 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

Re: [f2fs-dev] [PATCH 2/2] f2fs: use sbi->wr_mutex for write bios

2013-11-18 Thread Gu Zheng
Hi Kim, On 11/18/2013 05:12 PM, Jaegeuk Kim wrote: > 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. My god, I just sent out a

[f2fs-dev] [PATCH 2/2] f2fs: use sbi->wr_mutex for write bios

2013-11-18 Thread Jaegeuk Kim
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. Signed-off-by: Jaegeuk Kim --- fs/f2fs/data.c| 4 fs/f2fs/f2fs.h|