History

NFSv4/flexfiles: Abort I/O early if the layout segment was invalidated

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.

Trond Myklebust committed 7 years ago

Commit a79f1941 parent 39a52013 files · +25 −0Browse files

Showing the changes to include/linux (1 of 3 files). Show all

Unified · Split

include/linux/sunrpc/sched.h+1−0
@@ -97,6 +97,7 @@ typedef void (*rpc_action)(struct rpc_task *); · 96 unmodified lines
97 97
98struct rpc_call_ops {98struct 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 *);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t