/* We want to make sure a ping is in flight. It has timed out. And we are not busy processing a pdu that is making progress but got started before the ping and is taking a while to complete so the ping is just stuck behind it in a queue.  */
static int iscsi_has_ping_timed_out(struct iscsi_conn *conn)
/* We want to make sure a ping is in flight. It has timed out. And we are not busy processing a pdu that is making progress but got started before the ping and is taking a while to complete so the ping is just stuck behind it in a queue.  */
static int iscsi_has_ping_timed_out(struct iscsi_conn *conn)
{
	if (conn->ping_task &&
	    time_before_eq(conn->last_recv + (conn->recv_timeout * HZ) +
			   (conn->ping_timeout * HZ), jiffies))
		return 1;
	else
		return 0;
}