Commit 833cb8c
committed
pnfs/flexfiles: retry getting layout segment for reads
jira LE-3497
Rebuild_History Non-Buildable kernel-5.14.0-570.24.1.el9_6
commit-author Mike Snitzer <[email protected]>
commit eb3fabd
If ff_layout_pg_get_read()'s attempt to get a layout segment results
in -EAGAIN have ff_layout_pg_init_read() retry it after sleeping.
If "softerr" mount is used, use 'io_maxretrans' to limit the number of
attempts to get a layout segment.
This fixes a long-standing issue of O_DIRECT reads failing with
-EAGAIN (11) when using flexfiles Client Side Mirroring (CSM).
Cc: [email protected]
Signed-off-by: Mike Snitzer <[email protected]>
Signed-off-by: Anna Schumaker <[email protected]>
(cherry picked from commit eb3fabd)
Signed-off-by: Jonathan Maple <[email protected]>1 parent 1c24830 commit 833cb8c
1 file changed
+21
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
831 | 831 | | |
832 | 832 | | |
833 | 833 | | |
| 834 | + | |
| 835 | + | |
| 836 | + | |
834 | 837 | | |
835 | 838 | | |
836 | 839 | | |
| |||
844 | 847 | | |
845 | 848 | | |
846 | 849 | | |
| 850 | + | |
| 851 | + | |
847 | 852 | | |
848 | 853 | | |
849 | 854 | | |
| |||
860 | 865 | | |
861 | 866 | | |
862 | 867 | | |
863 | | - | |
864 | | - | |
865 | | - | |
866 | | - | |
867 | 868 | | |
868 | 869 | | |
869 | | - | |
870 | | - | |
| 870 | + | |
| 871 | + | |
| 872 | + | |
| 873 | + | |
| 874 | + | |
| 875 | + | |
| 876 | + | |
| 877 | + | |
| 878 | + | |
| 879 | + | |
| 880 | + | |
| 881 | + | |
| 882 | + | |
| 883 | + | |
| 884 | + | |
| 885 | + | |
871 | 886 | | |
872 | 887 | | |
873 | 888 | | |
| |||
0 commit comments