Skip to content
Commit c8536804 authored by Miklos Szeredi's avatar Miklos Szeredi
Browse files

ovl: fix lockdep warning for async write



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: default avatar <syzbot+9331a354f4f624a52a55@syzkaller.appspotmail.com>
Fixes: 2406a307

 ("ovl: implement async IO routines")
Signed-off-by: default avatarMiklos Szeredi <mszeredi@redhat.com>
parent 53afcd31
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment