Re: How can we use TUX atoms' framework to query file caching file status?

Ingo Molnar <[email protected]>
Newsgroups gmane.network.tux
Message-ID <[email protected]>
On Tue, 9 Apr 2002, Liang Yang wrote:

> You say we can use TUX atoms' framework
> to query file caching status, can you give us
> a little bit more information  about atoms' frame
> work? 

it's a bit complex, kernel internal stuff. I'd rather suggest for you to
extend the GET_OBJECT call to be 'atomic' if the module requests so. Just
return immediately with something like -EWOULDBLOCKIO if the path_walk [in
GET_OBJECT] does not succeed, and detect tihs -EWOULDBLOCKIO condition in
the tux() call you do from the module. This should be the simplest
solution for your purposes, a matter of a few minutes hacking.

you can later on extend this with 'if the path_walk succeeded then also
check for pagecache fill status and return -EWOULDBLOCKIO if the pagecache
is not sufficiently filled' type of heuristics we talked about earlier.

	Ingo
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.