mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-07-22 02:17:36 -04:00
sunrpc: rename sunrpc_cache_pipe_upcall_timeout()
This function doesn't have anything to do with a timeout. The only difference is that it warns if there are no listeners. Rename it to sunrpc_cache_upcall_warn(). Signed-off-by: Jeff Layton <jlayton@kernel.org> Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
This commit is contained in:
@@ -156,7 +156,7 @@ static int nfs_dns_upcall(struct cache_detail *cd,
|
||||
if (!nfs_cache_upcall(cd, key->hostname))
|
||||
return 0;
|
||||
clear_bit(CACHE_PENDING, &ch->flags);
|
||||
return sunrpc_cache_pipe_upcall_timeout(cd, ch);
|
||||
return sunrpc_cache_upcall_warn(cd, ch);
|
||||
}
|
||||
|
||||
static int nfs_dns_match(struct cache_head *ca,
|
||||
|
||||
@@ -126,7 +126,7 @@ idtoname_hash(struct ent *ent)
|
||||
static int
|
||||
idtoname_upcall(struct cache_detail *cd, struct cache_head *h)
|
||||
{
|
||||
return sunrpc_cache_pipe_upcall_timeout(cd, h);
|
||||
return sunrpc_cache_upcall_warn(cd, h);
|
||||
}
|
||||
|
||||
static void
|
||||
@@ -306,7 +306,7 @@ nametoid_hash(struct ent *ent)
|
||||
static int
|
||||
nametoid_upcall(struct cache_detail *cd, struct cache_head *h)
|
||||
{
|
||||
return sunrpc_cache_pipe_upcall_timeout(cd, h);
|
||||
return sunrpc_cache_upcall_warn(cd, h);
|
||||
}
|
||||
|
||||
static void
|
||||
|
||||
@@ -191,7 +191,7 @@ sunrpc_cache_update(struct cache_detail *detail,
|
||||
extern int
|
||||
sunrpc_cache_upcall(struct cache_detail *detail, struct cache_head *h);
|
||||
extern int
|
||||
sunrpc_cache_pipe_upcall_timeout(struct cache_detail *detail,
|
||||
sunrpc_cache_upcall_warn(struct cache_detail *detail,
|
||||
struct cache_head *h);
|
||||
|
||||
|
||||
|
||||
@@ -206,7 +206,7 @@ static struct cache_head *rsi_alloc(void)
|
||||
|
||||
static int rsi_upcall(struct cache_detail *cd, struct cache_head *h)
|
||||
{
|
||||
return sunrpc_cache_pipe_upcall_timeout(cd, h);
|
||||
return sunrpc_cache_upcall_warn(cd, h);
|
||||
}
|
||||
|
||||
static void rsi_request(struct cache_detail *cd,
|
||||
|
||||
@@ -1249,8 +1249,8 @@ int sunrpc_cache_upcall(struct cache_detail *detail, struct cache_head *h)
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(sunrpc_cache_upcall);
|
||||
|
||||
int sunrpc_cache_pipe_upcall_timeout(struct cache_detail *detail,
|
||||
struct cache_head *h)
|
||||
int sunrpc_cache_upcall_warn(struct cache_detail *detail,
|
||||
struct cache_head *h)
|
||||
{
|
||||
if (!cache_listeners_exist(detail)) {
|
||||
warn_no_listener(detail);
|
||||
@@ -1259,7 +1259,7 @@ int sunrpc_cache_pipe_upcall_timeout(struct cache_detail *detail,
|
||||
}
|
||||
return sunrpc_cache_upcall(detail, h);
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(sunrpc_cache_pipe_upcall_timeout);
|
||||
EXPORT_SYMBOL_GPL(sunrpc_cache_upcall_warn);
|
||||
|
||||
/*
|
||||
* parse a message from user-space and pass it
|
||||
|
||||
@@ -467,7 +467,7 @@ static struct cache_head *unix_gid_alloc(void)
|
||||
|
||||
static int unix_gid_upcall(struct cache_detail *cd, struct cache_head *h)
|
||||
{
|
||||
return sunrpc_cache_pipe_upcall_timeout(cd, h);
|
||||
return sunrpc_cache_upcall_warn(cd, h);
|
||||
}
|
||||
|
||||
static void unix_gid_request(struct cache_detail *cd,
|
||||
|
||||
Reference in New Issue
Block a user