Commit af38abfc authored by Vitaly Fertman's avatar Vitaly Fertman Committed by Greg Kroah-Hartman

staging/lustre/ptlrpc: Early Reply vs Reply MDunlink

A race between unregister_reply & early reply.
When buffers are busy for the early transfer, they cannon be unlinked
by unregister_reply, so the RPC gets into UNREGISTERING state. The
coming reply_in_callback for the early RPC already has unlinked flag
set due to previous mdunlink attempt, but we handle it properly only
for UNILNK event, whereas this is PUT in this case.
Signed-off-by: default avatarVitaly Fertman <>
Seagate-bug-id: MRP-3323
Reviewed-by: default avatarAlexey Leonidovich Lyashkov <>
Reviewed-by: default avatarAndriy Skulysh <>
Tested-by: default avatarParinay Vijayprakash Kondekar <>
Intel-bug-id: default avatarChris Horn <>
Reviewed-by: default avatarAndreas Dilger <>
Signed-off-by: default avatarOleg Drokin <>
Signed-off-by: default avatarGreg Kroah-Hartman <>
parent 9faa2ade
......@@ -137,7 +137,8 @@ void reply_in_callback(lnet_event_t *ev)
req->rq_early_count++; /* number received, client side */
if (req->rq_replied) /* already got the real reply */
/* already got the real reply or buffers are already unlinked */
if (req->rq_replied || req->rq_reply_unlinked == 1)
goto out_wake;
req->rq_early = 1;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment