linux/fs/overlayfs
Miklos Szeredi c853680453 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: 2406a307ac ("ovl: implement async IO routines")
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
2020-03-13 15:53:06 +01:00
..
copy_up.c ovl: improving copy-up efficiency for big sparse file 2020-01-22 20:11:41 +01:00
dir.c ovl: use pr_fmt auto generate prefix 2020-01-22 20:11:41 +01:00
export.c ovl: layer is const 2020-01-24 09:46:45 +01:00
file.c ovl: fix lockdep warning for async write 2020-03-13 15:53:06 +01:00
inode.c ovl: fix corner case of non-constant st_dev;st_ino 2020-01-24 09:46:45 +01:00
Kconfig ovl: fix some xino configurations 2020-03-13 15:53:06 +01:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
namei.c ovl: generalize the lower_layers[] array 2020-01-22 20:11:41 +01:00
overlayfs.h ovl: fix lock in ovl_llseek() 2020-03-12 16:38:10 +01:00
ovl_entry.h ovl: layer is const 2020-01-24 09:46:45 +01:00
readdir.c ovl: layer is const 2020-01-24 09:46:45 +01:00
super.c ovl: fix some xino configurations 2020-03-13 15:53:06 +01:00
util.c ovl: fix lock in ovl_llseek() 2020-03-12 16:38:10 +01:00