diff options
-rw-r--r-- | net/sunrpc/cache.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/net/sunrpc/cache.c b/net/sunrpc/cache.c index e20968aac68a..1e72cc955931 100644 --- a/net/sunrpc/cache.c +++ b/net/sunrpc/cache.c | |||
@@ -578,10 +578,9 @@ static int cache_wait_req(struct cache_req *req, struct cache_head *item) | |||
578 | dreq->revisit = cache_restart_thread; | 578 | dreq->revisit = cache_restart_thread; |
579 | 579 | ||
580 | ret = setup_deferral(dreq, item); | 580 | ret = setup_deferral(dreq, item); |
581 | if (ret) | ||
582 | return ret; | ||
583 | 581 | ||
584 | if (wait_for_completion_interruptible_timeout( | 582 | if (ret || |
583 | wait_for_completion_interruptible_timeout( | ||
585 | &sleeper.completion, req->thread_wait) <= 0) { | 584 | &sleeper.completion, req->thread_wait) <= 0) { |
586 | /* The completion wasn't completed, so we need | 585 | /* The completion wasn't completed, so we need |
587 | * to clean up | 586 | * to clean up |