Repository navigation
Commit c4853e9
ceph: retry the same mds later after the new session is opened
If max_mds > 1 and a request is submitted that chooses a random mds
rank, and the relating session is not opened yet, the request will wait
until the session has been opened and resend again.
Every time the request goes through __do_request, it will release the
req->session first and choose a random one again, which may be a
completely different rank than the one it just waited on.
In the worst case, it will open all the mds sessions one by one just
before the request can be successfully sent out.
Signed-off-by: Xiubo Li <xiubli@redhat.com>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>1 parent 9782005 commit c4853e9
1 file changed
Lines changed: 16 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
878 | 878 | | |
879 | 879 | | |
880 | 880 | | |
881 | | - | |
| 881 | + | |
| 882 | + | |
882 | 883 | | |
883 | 884 | | |
884 | 885 | | |
| |||
888 | 889 | | |
889 | 890 | | |
890 | 891 | | |
| 892 | + | |
| 893 | + | |
| 894 | + | |
891 | 895 | | |
892 | 896 | | |
893 | 897 | | |
| |||
1023 | 1027 | | |
1024 | 1028 | | |
1025 | 1029 | | |
| 1030 | + | |
| 1031 | + | |
| 1032 | + | |
1026 | 1033 | | |
1027 | 1034 | | |
1028 | 1035 | | |
| |||
2551 | 2558 | | |
2552 | 2559 | | |
2553 | 2560 | | |
| 2561 | + | |
2554 | 2562 | | |
2555 | 2563 | | |
2556 | 2564 | | |
| |||
2590 | 2598 | | |
2591 | 2599 | | |
2592 | 2600 | | |
2593 | | - | |
| 2601 | + | |
2594 | 2602 | | |
2595 | 2603 | | |
2596 | 2604 | | |
| |||
2618 | 2626 | | |
2619 | 2627 | | |
2620 | 2628 | | |
2621 | | - | |
| 2629 | + | |
2622 | 2630 | | |
| 2631 | + | |
| 2632 | + | |
| 2633 | + | |
| 2634 | + | |
2623 | 2635 | | |
2624 | 2636 | | |
2625 | 2637 | | |
| |||
2883 | 2895 | | |
2884 | 2896 | | |
2885 | 2897 | | |
2886 | | - | |
| 2898 | + | |
2887 | 2899 | | |
2888 | 2900 | | |
2889 | 2901 | | |
| |||
0 commit comments