X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=net%2Frxrpc%2Far-transport.c;h=64069c8769a51e0ad629d377d79f847dd26a92d7;hb=31582b094d640fdab3fd29237b348a4c7c8646fb;hp=d43d78f19302f9a126dd226d5bc1ffedf0bd9502;hpb=651350d10f93bed7003c9a66e24cf25e0f8eed3d;p=linux-2.6 diff --git a/net/rxrpc/ar-transport.c b/net/rxrpc/ar-transport.c index d43d78f193..64069c8769 100644 --- a/net/rxrpc/ar-transport.c +++ b/net/rxrpc/ar-transport.c @@ -183,13 +183,14 @@ void rxrpc_put_transport(struct rxrpc_transport *trans) ASSERTCMP(atomic_read(&trans->usage), >, 0); - trans->put_time = xtime.tv_sec; - if (unlikely(atomic_dec_and_test(&trans->usage))) + trans->put_time = get_seconds(); + if (unlikely(atomic_dec_and_test(&trans->usage))) { _debug("zombie"); /* let the reaper determine the timeout to avoid a race with * overextending the timeout if the reaper is running at the * same time */ rxrpc_queue_delayed_work(&rxrpc_transport_reap, 0); + } _leave(""); } @@ -219,7 +220,7 @@ static void rxrpc_transport_reaper(struct work_struct *work) _enter(""); - now = xtime.tv_sec; + now = get_seconds(); earliest = ULONG_MAX; /* extract all the transports that have been dead too long */