Commit 7a84394
NFS4: Apply delay_retrans to async operations
The setting of delay_retrans is applied to synchronous RPC operations
because the retransmit count is stored in same struct nfs4_exception
that is passed each time an error is checked. However, for asynchronous
operations (READ, WRITE, LOCKU, CLOSE, DELEGRETURN), a new struct
nfs4_exception is made on the stack each time the task callback is
invoked. This means that the retransmit count is always zero and thus
delay_retrans never takes effect.
Apply delay_retrans to these operations by tracking and updating their
retransmit count.
Change-Id: Ieb33e046c2b277cb979caa3faca7f52faf0568c9
Signed-off-by: Joshua Watt <[email protected]>
Reviewed-by: Benjamin Coddington <[email protected]>
Signed-off-by: Anna Schumaker <[email protected]>1 parent 8db4a1d commit 7a84394
2 files changed
+14
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3636 | 3636 | | |
3637 | 3637 | | |
3638 | 3638 | | |
| 3639 | + | |
3639 | 3640 | | |
3640 | 3641 | | |
3641 | 3642 | | |
| |||
3664 | 3665 | | |
3665 | 3666 | | |
3666 | 3667 | | |
| 3668 | + | |
3667 | 3669 | | |
3668 | 3670 | | |
3669 | 3671 | | |
| |||
3711 | 3713 | | |
3712 | 3714 | | |
3713 | 3715 | | |
| 3716 | + | |
3714 | 3717 | | |
3715 | 3718 | | |
3716 | 3719 | | |
| |||
5593 | 5596 | | |
5594 | 5597 | | |
5595 | 5598 | | |
| 5599 | + | |
5596 | 5600 | | |
5597 | 5601 | | |
5598 | 5602 | | |
| 5603 | + | |
5599 | 5604 | | |
5600 | 5605 | | |
5601 | 5606 | | |
| |||
5709 | 5714 | | |
5710 | 5715 | | |
5711 | 5716 | | |
| 5717 | + | |
5712 | 5718 | | |
5713 | 5719 | | |
5714 | 5720 | | |
5715 | 5721 | | |
| 5722 | + | |
5716 | 5723 | | |
5717 | 5724 | | |
5718 | 5725 | | |
| |||
6726 | 6733 | | |
6727 | 6734 | | |
6728 | 6735 | | |
| 6736 | + | |
6729 | 6737 | | |
6730 | 6738 | | |
6731 | 6739 | | |
| |||
6746 | 6754 | | |
6747 | 6755 | | |
6748 | 6756 | | |
| 6757 | + | |
6749 | 6758 | | |
6750 | 6759 | | |
6751 | 6760 | | |
| |||
6817 | 6826 | | |
6818 | 6827 | | |
6819 | 6828 | | |
| 6829 | + | |
6820 | 6830 | | |
6821 | 6831 | | |
6822 | 6832 | | |
| |||
7093 | 7103 | | |
7094 | 7104 | | |
7095 | 7105 | | |
| 7106 | + | |
7096 | 7107 | | |
7097 | 7108 | | |
7098 | 7109 | | |
| |||
7147 | 7158 | | |
7148 | 7159 | | |
7149 | 7160 | | |
| 7161 | + | |
7150 | 7162 | | |
7151 | 7163 | | |
7152 | 7164 | | |
| |||
7180 | 7192 | | |
7181 | 7193 | | |
7182 | 7194 | | |
| 7195 | + | |
7183 | 7196 | | |
7184 | 7197 | | |
7185 | 7198 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1659 | 1659 | | |
1660 | 1660 | | |
1661 | 1661 | | |
| 1662 | + | |
1662 | 1663 | | |
1663 | 1664 | | |
1664 | 1665 | | |
| |||
0 commit comments