OSDN Git Service

Revert "NFSv4/flexfiles: Abort I/O early if the layout segment was invalidated"
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Fri, 16 Aug 2019 12:37:26 +0000 (08:37 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Mon, 26 Aug 2019 19:31:29 +0000 (15:31 -0400)
commitd5711920ec6e578f51db95caa6f185f5090b865e
treea8c5664d0bdf5d8563eeebb38868b24b75b31d0a
parent80f455da6cd0998a5be30a8af24ea2a22815c212
Revert "NFSv4/flexfiles: Abort I/O early if the layout segment was invalidated"

This reverts commit a79f194aa4879e9baad118c3f8bb2ca24dbef765.
The mechanism for aborting I/O is racy, since we are not guaranteed that
the request is asleep while we're changing both task->tk_status and
task->tk_action.

Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Cc: stable@vger.kernel.org # v5.1
fs/nfs/flexfilelayout/flexfilelayout.c
include/linux/sunrpc/sched.h
net/sunrpc/xprt.c