]> git.baikalelectronics.ru Git - kernel.git/commit
ceph: use default file splice read callback
authorYan, Zheng <zyan@redhat.com>
Wed, 9 Nov 2016 08:47:54 +0000 (16:47 +0800)
committerIlya Dryomov <idryomov@gmail.com>
Thu, 10 Nov 2016 19:13:04 +0000 (20:13 +0100)
commitea9673d53f5011d56f2162b9963c0b422ffdfb91
tree0cfb2ccea2e82407267c5af719086ca108c06ca1
parent227ce641993c06c01b6ac0986ced6c2ef6b800df
ceph: use default file splice read callback

Splice read/write implementation changed recently. When using
generic_file_splice_read(), iov_iter with type == ITER_PIPE is
passed to filesystem's read_iter callback. But ceph_sync_read()
can't serve ITER_PIPE iov_iter correctly (ITER_PIPE iov_iter
expects pages from page cache).

Fixing ceph_sync_read() requires a big patch. So use default
splice read callback for now.

Signed-off-by: Yan, Zheng <zyan@redhat.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/ceph/file.c