Affects Version/s: None
Fix Version/s: None
A client will be evicted in this case:
- ldlm lock is granted while sending lock enqueue reply
- another thread tries to enqueue conflicting lock which can either set LDLM_FL_AST_SENT for this reply, or send blocking AST.*
- lock enqueue reply is lost
- RPC deadline on client side is longer than waiting lock deadline
If all these happened, this client will be evicted even with AST resend (
This patch is a workaround, it will guarantee waiting lock deadline is longer than server RPC deadline, which should be close to client side RPC deadline, so client at least has a chance to resend RPC.
This patch cannot help if there are multiple messages lost, for example, if resent RPC is lost again. Also, if there is huge network latency like router congestion on the path from client to server, then we may still have client eviction even with this patch, because server has no idea about network latency.