-
- Downloads
f2fs: avoid fi->i_gc_rwsem[WRITE] lock in f2fs_gc
The f2fs_gc() called by f2fs_balance_fs() requires to be called outside of fi->i_gc_rwsem[WRITE], since f2fs_gc() can try to grab it in a loop. If it hits the miximum retrials in GC, let's give a chance to release gc_mutex for a short time in order not to go into live lock in the worst case. Reviewed-by:Chao Yu <yuchao0@huawei.com> Signed-off-by:
Jaegeuk Kim <jaegeuk@kernel.org>
Showing
- fs/f2fs/data.c 2 additions, 2 deletionsfs/f2fs/data.c
- fs/f2fs/f2fs.h 1 addition, 0 deletionsfs/f2fs/f2fs.h
- fs/f2fs/file.c 62 additions, 57 deletionsfs/f2fs/file.c
- fs/f2fs/gc.c 20 additions, 6 deletionsfs/f2fs/gc.c
- fs/f2fs/segment.c 5 additions, 1 deletionfs/f2fs/segment.c
- fs/f2fs/segment.h 1 addition, 1 deletionfs/f2fs/segment.h
Loading
Please register or sign in to comment