The patch titled NeilBrown <neilb@xxxxxxx> has been removed from the -mm tree. Its filename was make-sure-readv-stops-reading-when-it-hits-end-of-file.patch This patch was dropped because it was merged into mainline or a subsystem tree ------------------------------------------------------ Subject: NeilBrown <neilb@xxxxxxx> The do_loop_readv_writev implementation of readv breaks out of the loop as soon as a single read request didn't fill it's buffer: if (nr != len) break; The generic_file_aio_read version doesn't. So if it hits EOF before the end of the list of buffers, it will try again on the next buffer. If the file was extended in the mean time, this will produce a bad result. Signed-off-by: Neil Brown <neilb@xxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/filemap.c | 2 ++ 1 file changed, 2 insertions(+) diff -puN mm/filemap.c~make-sure-readv-stops-reading-when-it-hits-end-of-file mm/filemap.c --- a/mm/filemap.c~make-sure-readv-stops-reading-when-it-hits-end-of-file +++ a/mm/filemap.c @@ -1219,6 +1219,8 @@ generic_file_aio_read(struct kiocb *iocb retval = retval ?: desc.error; break; } + if (desc.count > 0) + break; } } out: _ Patches currently in -mm which might be from neilb@xxxxxxx are origin.patch mm-revert-kernel_ds-buffered-write-optimisation.patch fix-read-truncate-race.patch knfsd-exportfs-add-exportfsh-header.patch knfsd-exportfs-remove-iget-abuse.patch knfsd-exportfs-add-procedural-interface-for-nfsd.patch knfsd-exportfs-remove-call-macro.patch knfsd-exportfs-untangle-isdir-logic-in-find_exported_dentry.patch knfsd-exportfs-move-acceptable-check-into-find_acceptable_alias.patch knfsd-exportfs-add-find_disconnected_root-helper.patch knfsd-exportfs-split-out-reconnecting-a-dentry-from-find_exported_dentry.patch nfsd-warning-fix.patch knfsd-lockd-nfsd4-use-same-grace-period-for-lockd-and-nfsd4.patch knfsd-nfsd4-fix-nfsv4-filehandle-size-units-confusion.patch knfsd-nfsd4-silence-a-compiler-warning-in-acl-code.patch knfsd-nfsd4-fix-enc_stateid_sz-for-nfsd-callbacks.patch knfsd-nfsd4-fix-handling-of-acl-errrors.patch knfsd-nfsd-remove-unused-header-interfaceh.patch knfsd-nfsd4-vary-maximum-delegation-limit-based-on-ram-size.patch knfsd-nfsd4-dont-delegate-files-that-have-had-conflicts.patch knfsd-nfsd-make-all-exp_finding-functions-return-errnos-on-err.patch knfsd-nfsd4-build-rpcsec_gss-whenever-nfsd4-is-built.patch knfsd-nfsd4-store-pseudoflavor-in-request.patch knfsd-nfsd4-parse-secinfo-information-in-exports-downcall.patch knfsd-nfsd4-simplify-exp_pseudoroot-arguments.patch knfsd-nfsd-remove-superfluous-assignment-from-nfsd_lookup.patch knfsd-nfsd-provide-export-lookup-wrappers-which-take-a-svc_rqst.patch knfsd-nfsd-set-rq_client-to-ip-address-determined-domain.patch knfsd-nfsd-use-ip-address-based-domain-in-secinfo-case.patch knfsd-nfsd-use-ip-address-based-domain-in-secinfo-case-fix.patch knfsd-nfsd-factor-nfsd_lookup-into-2-pieces.patch knfsd-nfsd4-return-nfserr_wrongsec.patch knfsd-nfsd4-make-readonly-access-depend-on-pseudoflavor.patch knfsd-nfsd-factor-out-code-from-show_expflags.patch knfsd-nfsd-display-export-secinfo-information.patch knfsd-rpc-add-gss-krb5-and-spkm3-oid-values.patch knfsd-nfsd4-implement-secinfo.patch knfsd-nfsd4-secinfo-handling-without-secinfo=-option.patch knfsd-nfsd-allow-auth_sys-nlm-on-rpcsec_gss-exports.patch knfsd-nfsd-enforce-per-flavor-id-squashing.patch use-menuconfig-objects-ii-md.patch md-improve-message-about-invalid-superblock-during-autodetect.patch md-improve-the-is_mddev_idle-test-fix.patch md-check-that-internal-bitmap-does-not-overlap-other-data.patch md-change-bitmap_unplug-and-others-to-void-functions.patch raid5-add-the-stripe_queue-object-for-tracking-raid.patch raid5-add-the-stripe_queue-object-for-tracking-raid-io-requests-take2.patch raid5-use-stripe_queues-to-prioritize-the-most.patch fs-introduce-vfs_path_lookup.patch sunrpc-use-vfs_path_lookup.patch nfsctl-use-vfs_path_lookup.patch fs-mark-link_path_walk-static.patch fs-remove-path_walk-export.patch - To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html