]> git.baikalelectronics.ru Git - kernel.git/commit
ovl: fix lockdep warning for async write
authorMiklos Szeredi <mszeredi@redhat.com>
Fri, 13 Mar 2020 14:42:20 +0000 (15:42 +0100)
committerMiklos Szeredi <mszeredi@redhat.com>
Fri, 13 Mar 2020 14:53:06 +0000 (15:53 +0100)
commitfd9e97fcbd609a1ccde43b4d5a2933f76addcf6a
treee43522287e100b759eb8f8b5abb4ff056c4a448b
parent386d574ca31224ad638e11b9e5271f50832d04b6
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: syzbot+9331a354f4f624a52a55@syzkaller.appspotmail.com
Fixes: a31d870f020d ("ovl: implement async IO routines")
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
fs/overlayfs/file.c