diff options
Diffstat (limited to 'net/sunrpc/cache.c')
| -rw-r--r-- | net/sunrpc/cache.c | 8 | 
1 files changed, 4 insertions, 4 deletions
diff --git a/net/sunrpc/cache.c b/net/sunrpc/cache.c index 261131dfa1f1..66fbb9d2fba7 100644 --- a/net/sunrpc/cache.c +++ b/net/sunrpc/cache.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: GPL-2.0-only  /*   * net/sunrpc/cache.c   * @@ -5,9 +6,6 @@   * used by sunrpc clients and servers.   *   * Copyright (C) 2002 Neil Brown <[email protected]> - * - * Released under terms in GPL version 2.  See COPYING. - *   */  #include <linux/types.h> @@ -40,6 +38,7 @@  static bool cache_defer_req(struct cache_req *req, struct cache_head *item);  static void cache_revisit_request(struct cache_head *item); +static bool cache_listeners_exist(struct cache_detail *detail);  static void cache_init(struct cache_head *h, struct cache_detail *detail)  { @@ -306,7 +305,8 @@ int cache_check(struct cache_detail *detail,  				cache_fresh_unlocked(h, detail);  				break;  			} -		} +		} else if (!cache_listeners_exist(detail)) +			rv = try_to_negate_entry(detail, h);  	}  	if (rv == -EAGAIN) {  |