Commit 93b114e3 authored by Committed by Pavan BalajiBrowse files
Bug-fix in Request_load_recv_iov() when initial value of segment_first is not 0.
Originally Request_load_recv_iov() function assumes that the initial value of req->dev.segment_first is always zero, which is not correct if we set it to a non-zero value for streaming the RMA operations. The way Request_load_recv_iov() works is that, it is triggered multiple times for the same receiving request until all data is received. During this process, req->dev.segment_first is rewritten to the current offset value. When the initial value of req->dev.segment_first is non-zero, we need another variable to store that value until the receiving process for this request is finished. Here we use a static variable in this function to reach the purpose. Signed-off-by: Pavan Balaji <firstname.lastname@example.org>
Showing with 14 additions and 3 deletions