set to error when interrupted. Instead, the caller of get
completion event should decide what to do with it based on
errno. The fix is do not change the state to rs_error when
errno is EINTR inside get completion event.
Signed-off-by: Sreedhar Kodali <srkodali@linux.vnet.ibm.com>
Reviewed-by: Pradeep Satyanarayana <pradeeps@linux.vnet.ibm.com>
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
rs->unack_cqe = 0;
}
rs->cq_armed = 0;
- } else if (errno != EAGAIN) {
+ } else if (!(errno == EAGAIN || errno == EINTR)) {
rs->state = rs_error;
}