sheepdog: check simultaneous create in resend_aioreq
After reconnection happens, all the inflight requests are moved to the failed request list. As a result, sd_co_rw_vector() can send another create request before resend_aioreq() resends a create request from the failed list. This patch adds a helper function check_simultaneous_create() and checks simultaneous create requests more strictly in resend_aioreq(). Signed-off-by: NMORITA Kazutaka <morita.kazutaka@lab.ntt.co.jp> Tested-by: NLiu Yuan <namei.unix@gmail.com> Reviewed-by: NLiu Yuan <namei.unix@gmail.com> Signed-off-by: NKevin Wolf <kwolf@redhat.com>
Showing
想要评论请 注册 或 登录