platform_kernel-5.15/fs
Andreas Gruenbacher 18e16d6365 UPSTREAM: iomap: Support partial direct I/O on user copy failures
commit 97308f8b0d867e9ef59528cd97f0db55ffdf5651 upstream

In iomap_dio_rw, when iomap_apply returns an -EFAULT error and the
IOMAP_DIO_PARTIAL flag is set, complete the request synchronously and
return a partial result.  This allows the caller to deal with the page
fault and retry the remainder of the request.

Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit ea7a578588)
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: I5de5ec3e55f18305f76e78ab4c72ce3ee1272522
2022-06-10 08:12:03 +02:00
..
9p ANDROID: GKI: set vfs-only exports into their own namespace 2022-04-07 15:14:24 +02:00
adfs ANDROID: GKI: set vfs-only exports into their own namespace 2022-04-07 15:14:24 +02:00
affs ANDROID: GKI: set vfs-only exports into their own namespace 2022-04-07 15:14:24 +02:00
afs ANDROID: GKI: set vfs-only exports into their own namespace 2022-04-07 15:14:24 +02:00
autofs ANDROID: GKI: set vfs-only exports into their own namespace 2022-04-07 15:14:24 +02:00
befs ANDROID: GKI: set vfs-only exports into their own namespace 2022-04-07 15:14:24 +02:00
bfs ANDROID: GKI: set vfs-only exports into their own namespace 2022-04-07 15:14:24 +02:00
btrfs UPSTREAM: iov_iter: Turn iov_iter_fault_in_readable into fault_in_iov_iter_readable 2022-06-10 08:12:03 +02:00
cachefiles ANDROID: GKI: set vfs-only exports into their own namespace 2022-04-07 15:14:24 +02:00
ceph This is the 5.15.41 stable release 2022-05-18 11:31:34 +02:00
cifs Merge 5.15.38 into android13-5.15 2022-05-18 09:00:50 +02:00
coda ANDROID: GKI: set vfs-only exports into their own namespace 2022-04-07 15:14:24 +02:00
configfs ANDROID: fix kernelci build issue for configfs module 2022-04-30 00:08:48 +00:00
cramfs ANDROID: GKI: set vfs-only exports into their own namespace 2022-04-07 15:14:24 +02:00
crypto ANDROID: GKI: set vfs-only exports into their own namespace 2022-04-07 15:14:24 +02:00
debugfs debugfs: lockdown: Allow reading debugfs files that are not world readable 2022-01-27 11:03:55 +01:00
devpts fsnotify: fix fsnotify hooks in pseudo filesystems 2022-02-01 17:27:01 +01:00
dlm fs: dlm: filter user dlm messages for kernel locks 2022-01-27 11:04:23 +01:00
ecryptfs ANDROID: GKI: set vfs-only exports into their own namespace 2022-04-07 15:14:24 +02:00
efivarfs ANDROID: GKI: set vfs-only exports into their own namespace 2022-04-07 15:14:24 +02:00
efs ANDROID: GKI: set vfs-only exports into their own namespace 2022-04-07 15:14:24 +02:00
erofs iomap: Add done_before argument to iomap_dio_rw 2022-05-01 17:22:32 +02:00
exfat ANDROID: GKI: set vfs-only exports into their own namespace 2022-04-07 15:14:24 +02:00
exportfs
ext2 Merge 5.15.33 into android13-5.15 2022-04-20 08:18:54 +02:00
ext4 Merge 5.15.38 into android13-5.15 2022-05-18 09:00:50 +02:00
f2fs UPSTREAM: iov_iter: Turn iov_iter_fault_in_readable into fault_in_iov_iter_readable 2022-06-10 08:12:03 +02:00
fat ANDROID: GKI: set vfs-only exports into their own namespace 2022-04-07 15:14:24 +02:00
freevxfs ANDROID: GKI: set vfs-only exports into their own namespace 2022-04-07 15:14:24 +02:00
fscache ANDROID: GKI: set vfs-only exports into their own namespace 2022-04-07 15:14:24 +02:00
fuse UPSTREAM: iov_iter: Turn iov_iter_fault_in_readable into fault_in_iov_iter_readable 2022-06-10 08:12:03 +02:00
gfs2 UPSTREAM: gfs2: Fix mmap + page fault deadlocks for buffered I/O 2022-06-10 08:12:03 +02:00
hfs ANDROID: GKI: set vfs-only exports into their own namespace 2022-04-07 15:14:24 +02:00
hfsplus ANDROID: GKI: set vfs-only exports into their own namespace 2022-04-07 15:14:24 +02:00
hostfs hostfs: support splice_write 2021-08-26 22:28:02 +02:00
hpfs ANDROID: GKI: set vfs-only exports into their own namespace 2022-04-07 15:14:24 +02:00
hugetlbfs mm, hugetlb: allow for "high" userspace addresses 2022-04-27 14:38:57 +02:00
incfs ANDROID: GKI: set vfs-only exports into their own namespace 2022-04-07 15:14:24 +02:00
iomap UPSTREAM: iomap: Support partial direct I/O on user copy failures 2022-06-10 08:12:03 +02:00
isofs ANDROID: GKI: set vfs-only exports into their own namespace 2022-04-07 15:14:24 +02:00
jbd2 Merge 5.15.36 into android13-5.15 2022-05-18 08:55:59 +02:00
jffs2 Merge 5.15.33 into android13-5.15 2022-04-20 08:18:54 +02:00
jfs Merge 5.15.34 into android13-5.15 2022-04-24 16:57:32 +02:00
kernfs Revert "FROMLIST: Add flags option to get xattr method paired to..." 2021-11-20 03:15:20 +00:00
ksmbd Merge 5.15.38 into android13-5.15 2022-05-18 09:00:50 +02:00
lockd lockd: fix failure to cleanup client locks 2022-02-05 12:38:57 +01:00
minix Merge 5.15.34 into android13-5.15 2022-04-24 16:57:32 +02:00
netfs netfs: fix parameter of cleanup() 2021-12-29 12:28:59 +01:00
nfs This is the 5.15.41 stable release 2022-05-18 11:31:34 +02:00
nfs_common nfs: Fix kerneldoc warning shown up by W=1 2021-10-04 22:02:17 +01:00
nfsd Merge 5.15.33 into android13-5.15 2022-04-20 08:18:54 +02:00
nilfs2 ANDROID: GKI: set vfs-only exports into their own namespace 2022-04-07 15:14:24 +02:00
nls ANDROID: GKI: set vfs-only exports into their own namespace 2022-04-07 15:14:24 +02:00
notify This is the 5.15.20 stable release 2022-02-05 13:22:13 +01:00
ntfs UPSTREAM: iov_iter: Turn iov_iter_fault_in_readable into fault_in_iov_iter_readable 2022-06-10 08:12:03 +02:00
ntfs3 UPSTREAM: iov_iter: Turn iov_iter_fault_in_readable into fault_in_iov_iter_readable 2022-06-10 08:12:03 +02:00
ocfs2 Merge 5.15.33 into android13-5.15 2022-04-20 08:18:54 +02:00
omfs ANDROID: GKI: set vfs-only exports into their own namespace 2022-04-07 15:14:24 +02:00
openpromfs
orangefs ANDROID: GKI: set vfs-only exports into their own namespace 2022-04-07 15:14:24 +02:00
overlayfs ANDROID: GKI: set vfs-only exports into their own namespace 2022-04-07 15:14:24 +02:00
proc ANDROID: vendor_hooks: Add hooks for memory when debug 2022-06-02 14:37:19 -07:00
pstore ANDROID: pstore/ram: Add backward compatibility for ramoops reserved region 2022-05-16 22:30:25 +00:00
qnx4 ANDROID: GKI: set vfs-only exports into their own namespace 2022-04-07 15:14:24 +02:00
qnx6 ANDROID: GKI: set vfs-only exports into their own namespace 2022-04-07 15:14:24 +02:00
quota quota: make dquot_quota_sync return errors from ->sync_fs 2022-02-23 12:03:06 +01:00
ramfs
reiserfs ANDROID: GKI: set vfs-only exports into their own namespace 2022-04-07 15:14:24 +02:00
romfs ANDROID: GKI: set vfs-only exports into their own namespace 2022-04-07 15:14:24 +02:00
smbfs_common cifs: Fix crash on unload of cifs_arc4.ko 2021-12-14 10:57:12 +01:00
squashfs ANDROID: GKI: set vfs-only exports into their own namespace 2022-04-07 15:14:24 +02:00
sysfs
sysv ANDROID: GKI: set vfs-only exports into their own namespace 2022-04-07 15:14:24 +02:00
tracefs Merge 5.15.26 into android13-5.15 2022-03-16 12:53:52 +01:00
ubifs Merge 5.15.33 into android13-5.15 2022-04-20 08:18:54 +02:00
udf Merge 5.15.40 into android13-5.15 2022-05-18 09:40:16 +02:00
ufs ANDROID: GKI: set vfs-only exports into their own namespace 2022-04-07 15:14:24 +02:00
unicode
vboxsf ANDROID: GKI: set vfs-only exports into their own namespace 2022-04-07 15:14:24 +02:00
verity ANDROID: GKI: set vfs-only exports into their own namespace 2022-04-07 15:14:24 +02:00
xfs Merge 5.15.36 into android13-5.15 2022-05-18 08:55:59 +02:00
zonefs Merge 5.15.38 into android13-5.15 2022-05-18 09:00:50 +02:00
Kconfig Merge tag 'v5.15-rc1' into `android-mainline` 2021-09-16 09:51:19 +02:00
Kconfig.binfmt
Makefile ANDROID: GKI: set vfs-only exports into their own namespace 2022-04-07 15:14:24 +02:00
OWNERS
aio.c aio: Fix incorrect usage of eventfd_signal_allowed() 2021-12-14 10:57:22 +01:00
anon_inodes.c
attr.c ANDROID: GKI: set vfs-only exports into their own namespace 2022-04-07 15:14:24 +02:00
bad_inode.c ANDROID: GKI: set vfs-only exports into their own namespace 2022-04-07 15:14:24 +02:00
binfmt_aout.c binfmt: a.out: Fix bogus semicolon 2021-09-05 10:15:05 -07:00
binfmt_elf.c Revert "Revert "coredump: Use the vma snapshot in fill_files_note"" 2022-05-04 13:39:10 -07:00
binfmt_elf_fdpic.c Revert "Revert "coredump: Snapshot the vmas in do_coredump"" 2022-05-04 13:39:10 -07:00
binfmt_flat.c
binfmt_misc.c ANDROID: GKI: set vfs-only exports into their own namespace 2022-04-07 15:14:24 +02:00
binfmt_script.c
buffer.c Merge 5.15.33 into android13-5.15 2022-04-20 08:18:54 +02:00
char_dev.c
compat_binfmt_elf.c
coredump.c Revert "Revert "coredump: Use the vma snapshot in fill_files_note"" 2022-05-04 13:39:10 -07:00
d_path.c d_path: make 'prepend()' fill up the buffer exactly on overflow 2021-09-02 10:07:29 -07:00
dax.c New code for 5.15: 2021-08-31 11:13:35 -07:00
dcache.c ANDROID: GKI: set vfs-only exports into their own namespace 2022-04-07 15:14:24 +02:00
direct-io.c ANDROID: GKI: set vfs-only exports into their own namespace 2022-04-07 15:14:24 +02:00
drop_caches.c fs: drop_caches: fix skipping over shadow cache inodes 2021-09-03 09:58:10 -07:00
eventfd.c eventfd: Export eventfd_wake_count to modules 2021-09-06 07:20:56 -04:00
eventpoll.c Merge tag 'v5.15-rc1' into `android-mainline` 2021-09-16 09:51:19 +02:00
exec.c FROMLIST: mm: multi-gen LRU: support page table walks 2022-04-20 17:38:55 +00:00
fcntl.c Merge branch 'akpm' (patches from Andrew) 2021-09-03 10:08:28 -07:00
fhandle.c
file.c Merge 5.15.33 into android13-5.15 2022-04-20 08:18:54 +02:00
file_table.c SUNRPC: Ensure we flush any closed sockets before xs_xprt_free() 2022-05-18 10:26:57 +02:00
filesystems.c
fs-writeback.c This is the 5.15.41 stable release 2022-05-18 11:31:34 +02:00
fs_context.c vfs: fs_context: fix up param length parsing in legacy_parse_param 2022-01-20 09:13:14 +01:00
fs_parser.c namei: Standardize callers of filename_lookup() 2021-09-07 16:07:47 -04:00
fs_pin.c
fs_struct.c
fs_types.c ANDROID: GKI: set vfs-only exports into their own namespace 2022-04-07 15:14:24 +02:00
fsopen.c
init.c
inode.c ANDROID: GKI: set vfs-only exports into their own namespace 2022-04-07 15:14:24 +02:00
internal.h block: simplify the block device syncing code 2022-04-27 14:38:50 +02:00
io-wq.c io-wq: drop wqe lock before creating new worker 2021-12-22 09:32:51 +01:00
io-wq.h io-wq: provide a way to limit max number of workers 2021-08-29 07:55:55 -06:00
io_uring.c io_uring: check reserved fields for recv/recvmsg 2022-05-09 09:14:38 +02:00
ioctl.c ANDROID: GKI: set vfs-only exports into their own namespace 2022-04-07 15:14:24 +02:00
kernel_read_file.c vfs: check fd has read access in kernel_read_file_from_fd() 2021-10-18 20:22:03 -10:00
libfs.c ANDROID: GKI: set vfs-only exports into their own namespace 2022-04-07 15:14:24 +02:00
locks.c Revert "memcg: enable accounting for file lock caches" 2021-09-07 11:21:48 -07:00
mbcache.c
mount.h
mpage.c ANDROID: GKI: set vfs-only exports into their own namespace 2022-04-07 15:14:24 +02:00
namei.c Merge 5.15.36 into android13-5.15 2022-05-18 08:55:59 +02:00
namespace.c ANDROID: GKI: set vfs-only exports into their own namespace 2022-04-07 15:14:24 +02:00
no-block.c
nsfs.c
open.c ANDROID: GKI: set vfs-only exports into their own namespace 2022-04-07 15:14:24 +02:00
pipe.c watch_queue: Fix lack of barrier/sync/lock between post and read 2022-03-16 14:23:44 +01:00
pnode.c
pnode.h
posix_acl.c Revert "FROMLIST: Add flags option to get xattr method paired to..." 2021-11-20 03:15:20 +00:00
proc_namespace.c
read_write.c ANDROID: GKI: set vfs-only exports into their own namespace 2022-04-07 15:14:24 +02:00
readdir.c
remap_range.c
select.c select: Fix indefinitely sleeping task in poll_schedule_timeout() 2022-01-29 10:58:25 +01:00
seq_file.c
signalfd.c signalfd: use wake_up_pollfree() 2021-12-14 10:57:15 +01:00
splice.c ANDROID: GKI: set vfs-only exports into their own namespace 2022-04-07 15:14:24 +02:00
stack.c
stat.c Merge 5.15.36 into android13-5.15 2022-05-18 08:55:59 +02:00
statfs.c
super.c ANDROID: GKI: set vfs-only exports into their own namespace 2022-04-07 15:14:24 +02:00
sync.c Merge 5.15.36 into android13-5.15 2022-05-18 08:55:59 +02:00
timerfd.c
userfaultfd.c UPSTREAM: mm: refactor vm_area_struct::anon_vma_name usage code 2022-03-24 18:44:39 -07:00
utimes.c
xattr.c ANDROID: GKI: set vfs-only exports into their own namespace 2022-04-07 15:14:24 +02:00