lkml.org 
[lkml]   [2006]   [Apr]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectWhy the RPC task structure adds a new field "tk_count"?
I migrate from 2.6.11 to 2.6.16, but found that a new field tk_count
was added to the rpc task structure. In function rpc_release_task(), I
saw the following code:

if (!atomic_dec_and_test(&task->tk_count))
return;


Looks like a task can be reused or refered multiple times? What's the
theory behind this? Why do we need this?

Thanks,

Xin
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-04-27 20:35    [W:0.039 / U:0.360 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site