mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 13:55:32 +00:00
SUNRPC: Make cache_req::thread_wait an unsigned long
The second parameter of wait_for_completion_interruptible_timeout() is a jiffies value whose type is "unsigned long". Avoid an unnecessary and potentially fraught implicit type conversion at the wait_for_completion_interruptible_timeout() call site in cache_wait_req(). Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
This commit is contained in:
parent
37324e6bb1
commit
0b6c14bdd9
1 changed files with 4 additions and 4 deletions
|
@ -121,17 +121,17 @@ struct cache_detail {
|
||||||
struct net *net;
|
struct net *net;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
/* this must be embedded in any request structure that
|
/* this must be embedded in any request structure that
|
||||||
* identifies an object that will want a callback on
|
* identifies an object that will want a callback on
|
||||||
* a cache fill
|
* a cache fill
|
||||||
*/
|
*/
|
||||||
struct cache_req {
|
struct cache_req {
|
||||||
struct cache_deferred_req *(*defer)(struct cache_req *req);
|
struct cache_deferred_req *(*defer)(struct cache_req *req);
|
||||||
int thread_wait; /* How long (jiffies) we can block the
|
unsigned long thread_wait; /* How long (jiffies) we can block the
|
||||||
* current thread to wait for updates.
|
* current thread to wait for updates.
|
||||||
*/
|
*/
|
||||||
};
|
};
|
||||||
|
|
||||||
/* this must be embedded in a deferred_request that is being
|
/* this must be embedded in a deferred_request that is being
|
||||||
* delayed awaiting cache-fill
|
* delayed awaiting cache-fill
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in a new issue