]> www.infradead.org Git - users/willy/xarray.git/commit
NFS: Reverse the submission order of requests in __nfs_pageio_add_request()
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Tue, 31 Mar 2020 22:27:26 +0000 (18:27 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Wed, 1 Apr 2020 17:37:56 +0000 (13:37 -0400)
commit44a65a0c278336719892287a185836fddeabb933
tree44978bd6035a2633ea54be01094041eb9643fcca
parenta62f8e3bd836bf1abde1648a45e14afd050dbd23
NFS: Reverse the submission order of requests in __nfs_pageio_add_request()

If we have to split the request up into subrequests, we have to submit
the request pointed to by the function call parameter last, in case
there is an error or other issue that causes us to exit before the
last request is submitted. The reason is that the caller is expected
to perform cleanup in those cases.

Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/pagelist.c