pdu->timeout needs to be uint64_t

pdu->timeout is the timeout for for the pdu using the unix epoch but
expressed in ms, not seconds.
As such it must be 64 bit as on 32 bit we would have already wrapped the
timer.

Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
libnfs-4.0.0-vitalif
Ronnie Sahlberg 2017-07-08 17:08:17 +10:00
parent 419e196979
commit df94ae931a
1 changed files with 1 additions and 1 deletions

View File

@ -177,7 +177,7 @@ struct rpc_pdu {
#define PDU_DISCARD_AFTER_SENDING 0x00000001
uint32_t flags;
long timeout;
uint64_t timeout;
};
void rpc_reset_queue(struct rpc_queue *q);