> The other issue is that each caller in the kernel specifies a different
> timeout.  Defining this in 1 central place and allowing user space to
> control
> the policy of that timeout is much better than allowing the kernel clients
> to
> specify the timeout as they do now.

Everything has been randomly hard-coded.  IMO, the sa_query module should use 
its own timeout value, which it updates based on how fast it actually gets 
responses.  But that takes too much work, and no one is ever going to write the 
code to do this.

For the netlink specific problem, I'll propose using a different randomly 
hard-coded value as a timeout.  Then define an 'MRA' type of message that user 
space can send to the kernel in order to ask it to wait longer.  The 'set 
timeout' message could apply to a single request or all future requests.  If we 
only wanted to the 'all future requests' option, the data value could be 
written into a file.  In any case, this pushes the policy of the timeout value 
into the hands of the responding daemon.

- Sean
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to