- if (ktime_compare(ktime_get(), tx->tx_deadline) >= 0) {
- CERROR("Timed out tx: %s, %lld seconds\n",
+ if (ktime_compare(ktime_get(), tx->tx_deadline) < 0)
+ continue;
+
+ if (!active_txs) {
+ CERROR("Timed out tx: %s, "
+ "outstanding RDMA time: %lld sec\n",
+ kiblnd_queue2str(conn, txs),
+ *kiblnd_tunables.kib_timeout +
+ (ktime_ms_delta(ktime_get(),
+ tx->tx_deadline) / MSEC_PER_SEC));
+ } else {
+ CERROR("Timed out tx: %s, time in internal queue: %lld "
+ "sec, time in active queue: %lld sec,"
+ " outstanding RDMA time: %lld sec\n",