On 04/03/2016 18:28, Chuck Lever wrote:
If ib_post_send() in ro_unmap_sync() fails, the WRs have not been posted, no completions will fire, and wait_for_completion() will wait forever. Skip the wait in that case. To ensure the MRs are invalid, disconnect.
How does that help to ensure that? The first wr that failed and on will leave the corresponding MRs invalid, and the others will be valid upon completion. disconnecting will move the QP to error state, but it's not guaranteed that the wrs that _were_ posted will not be executed. I'd say this is the opposite of ensuring... -- To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html