original_kernel/fs/ceph
Ilya Dryomov fc218544fb ceph: fix iov_iter issues in ceph_direct_read_write()
dio_get_pagev_size() and dio_get_pages_alloc() introduced in commit
b5b98989dc ("ceph: combine as many iovec as possile into one OSD
request") assume that the passed iov_iter is ITER_IOVEC.  This isn't
the case with splice where it ends up poking into the guts of ITER_BVEC
or ITER_PIPE iterators, causing lockups and crashes easily reproduced
with generic/095.

Rather than trying to figure out gap alignment and stuff pages into
a page vector, add a helper for going from iov_iter to a bio_vec array
and make use of the new CEPH_OSD_DATA_TYPE_BVECS code.

Fixes: b5b98989dc ("ceph: combine as many iovec as possile into one OSD request")
Link: http://tracker.ceph.com/issues/18130
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Reviewed-by: Jeff Layton <jlayton@redhat.com>
Reviewed-by: "Yan, Zheng" <zyan@redhat.com>
Tested-by: Luis Henriques <lhenriques@suse.com>
2018-05-10 10:15:12 +02:00
..
Kconfig
Makefile
acl.c
addr.c
cache.c The big ticket items are: 2018-04-10 12:25:30 -07:00
cache.h
caps.c
ceph_frag.c
debugfs.c
dir.c The big ticket items are: 2018-04-10 12:25:30 -07:00
export.c
file.c ceph: fix iov_iter issues in ceph_direct_read_write() 2018-05-10 10:15:12 +02:00
inode.c ceph: always update atime/mtime/ctime for new inode 2018-04-16 09:38:40 +02:00
ioctl.c
ioctl.h
locks.c
mds_client.c
mds_client.h
mdsmap.c
quota.c
snap.c
strings.c
super.c
super.h
xattr.c ceph: check if mds create snaprealm when setting quota 2018-04-23 17:35:19 +02:00