HVSI_TIMEOUT
unsigned long end_jiffies = jiffies + HVSI_TIMEOUT;
if (!wait_event_timeout(hp->stateq, (hp->state == state), HVSI_TIMEOUT))
unsigned long end_jiffies = jiffies + HVSI_TIMEOUT;
wait_event_timeout(hp->emptyq, (hp->n_outbuf <= 0), HVSI_TIMEOUT);