summaryrefslogtreecommitdiffstats
path: root/fs/iomap.c
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2018-12-09 19:45:40 -0500
committerJens Axboe <axboe@kernel.dk>2018-12-09 19:45:40 -0500
commit96f774106ed48808a5e314741e3414c617d14460 (patch)
treea0beee162eeaf4813495ee28d3cfdd06effbc8be /fs/iomap.c
parent58ab5e32e6fd83e33943614e7257f2ac5823824a (diff)
parent40e020c129cfc991e8ab4736d2665351ffd1468d (diff)
Merge tag 'v4.20-rc6' into for-4.21/block
Pull in v4.20-rc6 to resolve the conflict in NVMe, but also to get the two corruption fixes. We're going to be overhauling the direct dispatch path, and we need to do that on top of the changes we made for that in mainline. Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'fs/iomap.c')
-rw-r--r--fs/iomap.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/fs/iomap.c b/fs/iomap.c
index d094e5688bd3..9a5bf1e8925b 100644
--- a/fs/iomap.c
+++ b/fs/iomap.c
@@ -1884,15 +1884,6 @@ iomap_dio_rw(struct kiocb *iocb, struct iov_iter *iter,
1884 dio->wait_for_completion = true; 1884 dio->wait_for_completion = true;
1885 ret = 0; 1885 ret = 0;
1886 } 1886 }
1887
1888 /*
1889 * Splicing to pipes can fail on a full pipe. We have to
1890 * swallow this to make it look like a short IO
1891 * otherwise the higher splice layers will completely
1892 * mishandle the error and stop moving data.
1893 */
1894 if (ret == -EFAULT)
1895 ret = 0;
1896 break; 1887 break;
1897 } 1888 }
1898 pos += ret; 1889 pos += ret;