If a layout segment gets invalidated while a pNFS I/O operation is queued for transmission, then we ideally want to abort immediately. This is particularly the case when there is a large number of I/O related RPCs queued in the RPC layer, and the layout segment gets invalidated due to an ENOSPC error, or an EACCES (because the client was fenced). We may end up forced to spam the MDS with a lot of otherwise unnecessary LAYOUTERRORs after that I/O fails.
Showing the changes to include/linux (1 of 3 files). Show all
Unified · Split
| @@ -97,6 +97,7 @@ typedef void (*rpc_action)(struct rpc_task *); · 96 unmodified lines | |||
| 97 | 97 | ||
| 98 | struct rpc_call_ops { | 98 | struct rpc_call_ops { |
| 99 | void (*rpc_call_prepare)(struct rpc_task *, void *); | 99 | void (*rpc_call_prepare)(struct rpc_task *, void *); |
| 100 | void (*rpc_call_prepare_transmit)(struct rpc_task *, void *); | ||
| 100 | void (*rpc_call_done)(struct rpc_task *, void *); | 101 | void (*rpc_call_done)(struct rpc_task *, void *); |
| 101 | void (*rpc_count_stats)(struct rpc_task *, void *); | 102 | void (*rpc_count_stats)(struct rpc_task *, void *); |
| 102 | void (*rpc_release)(void *); | 103 | void (*rpc_release)(void *); |