Re: [f2fs-dev] [PATCH v3] f2fs: avoid sleeping under spin_lock

2018-09-11 Thread Jaegeuk Kim
On 09/10, Chao Yu wrote: > On 2018/9/10 16:18, Zhikang Zhang wrote: > > In the call trace below, we might sleep in function dput(). > > > > So in order to avoid sleeping under spin_lock, we remove > > f2fs_mark_inode_dirty_sync > > from __try_update_largest_extent && __drop_largest_extent. > > >

Re: [f2fs-dev] [PATCH v3] f2fs: avoid sleeping under spin_lock

2018-09-10 Thread Chao Yu
On 2018/9/10 16:18, Zhikang Zhang wrote: > In the call trace below, we might sleep in function dput(). > > So in order to avoid sleeping under spin_lock, we remove > f2fs_mark_inode_dirty_sync > from __try_update_largest_extent && __drop_largest_extent. > > BUG: sleeping function called from inv

[f2fs-dev] [PATCH v3] f2fs: avoid sleeping under spin_lock

2018-09-10 Thread Zhikang Zhang
In the call trace below, we might sleep in function dput(). So in order to avoid sleeping under spin_lock, we remove f2fs_mark_inode_dirty_sync from __try_update_largest_extent && __drop_largest_extent. BUG: sleeping function called from invalid context at fs/dcache.c:796 Call trace: dum