Revert "NFSv4/flexfiles: Abort I/O early if the layout segment was invalidated"
This reverts commit a79f194aa4
.
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
This commit is contained in:
@@ -1408,13 +1408,6 @@ xprt_request_transmit(struct rpc_rqst *req, struct rpc_task *snd_task)
|
||||
status = -EBADMSG;
|
||||
goto out_dequeue;
|
||||
}
|
||||
if (task->tk_ops->rpc_call_prepare_transmit) {
|
||||
task->tk_ops->rpc_call_prepare_transmit(task,
|
||||
task->tk_calldata);
|
||||
status = task->tk_status;
|
||||
if (status < 0)
|
||||
goto out_dequeue;
|
||||
}
|
||||
if (RPC_SIGNALLED(task)) {
|
||||
status = -ERESTARTSYS;
|
||||
goto out_dequeue;
|
||||
|
Reference in New Issue
Block a user