Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ovl: fix lockdep warning for async write
ANBZ: torvalds#223 commit c853680 upstream. Lockdep reports "WARNING: lock held when returning to user space!" due to async write holding freeze lock over the write. Apparently aio.c already deals with this by lying to lockdep about the state of the lock. Do the same here. No need to check for S_IFREG() here since these file ops are regular-only. Reported-by: syzbot+9331a354f4f624a52a55@syzkaller.appspotmail.com Fixes: 2406a30 ("ovl: implement async IO routines") Signed-off-by: Miklos Szeredi <mszeredi@redhat.com> [joe: move file_start_write() down into sync/async branches] Signed-off-by: Joseph Qi <joseph.qi@linux.alibaba.com> Reviewed-by: Gao Xiang <hsiangkao@linux.alibaba.com> Reviewed-by: Xiaoguang Wang <xiaoguang.wang@linux.alibaba.com>
- Loading branch information