Repository navigation
Commit ecdd82e
committed
nfs: remove transfer from the door list if pool selection failed
Motivation:
As pNFS layouts are independent of file open, they are invalidated only
when layout return is issued. The door logic creates a transfer, adds
transfer into transfers list and then performs namespace lookup, pool
selection and starting a mover. In cases, when pool selection fails due
to stage protection or an attempt to overwrite, the layout get will
return "permission deny", thus layout return will never be issued and
transfer will stay in the door forever.
Modification:
Update layoutGet error handling such that on permission deny error pool
less transfers will be removed. An unexpected conditions are logged.
Result:
orphan transfers like "WriteTransfer null@N/A," are removed when it's
safe.
Acked-by: Marina Sahakyan
Target: master, 12.0, 11.2
Require-book: no
Require-notes: yes1 parent f46a968 commit ecdd82e
1 file changed
Lines changed: 17 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
802 | 802 | | |
803 | 803 | | |
804 | 804 | | |
| 805 | + | |
805 | 806 | | |
806 | 807 | | |
807 | 808 | | |
| |||
835 | 836 | | |
836 | 837 | | |
837 | 838 | | |
838 | | - | |
| 839 | + | |
839 | 840 | | |
840 | 841 | | |
841 | 842 | | |
| |||
911 | 912 | | |
912 | 913 | | |
913 | 914 | | |
| 915 | + | |
| 916 | + | |
| 917 | + | |
| 918 | + | |
| 919 | + | |
| 920 | + | |
| 921 | + | |
| 922 | + | |
| 923 | + | |
| 924 | + | |
| 925 | + | |
| 926 | + | |
| 927 | + | |
| 928 | + | |
914 | 929 | | |
915 | 930 | | |
916 | 931 | | |
| |||
1526 | 1541 | | |
1527 | 1542 | | |
1528 | 1543 | | |
1529 | | - | |
| 1544 | + | |
1530 | 1545 | | |
1531 | 1546 | | |
1532 | 1547 | | |
| |||
0 commit comments