Whamcloud - gitweb
b=16308
authormaxim <maxim>
Fri, 5 Sep 2008 19:12:26 +0000 (19:12 +0000)
committermaxim <maxim>
Fri, 5 Sep 2008 19:12:26 +0000 (19:12 +0000)
i=isaac
i=liang
Conf-sanity test_32a couldn't stop ost and mds because it
tried to access non-existent peer and tcp connect took
quite long before timing out. The patch flushes txs pinned
to a peer even if it's still in "connecting" state.

lnet/klnds/socklnd/socklnd.h

index e3290ba..07ad53b 100644 (file)
@@ -209,6 +209,7 @@ typedef struct                                  /* transmit packet */
         lnet_kiov_t            *tx_kiov;        /* packet page frags */
         struct ksock_conn      *tx_conn;        /* owning conn */
         lnet_msg_t             *tx_lnetmsg;     /* lnet message for lnet_finalize() */
+        cfs_time_t              tx_deadline;    /* when (in jiffies) tx times out */
         ksock_msg_t             tx_msg;         /* socklnd message buffer */
         int                     tx_desc_size;   /* size of this descriptor */
         union {