diff --git a/net/sunrpc/cache.c b/net/sunrpc/cache.c
index 95690a8a4d805f782d24d51527467603ccbdbf76..77970fe8bff24b2e7afe41538eac48992106fdfd 100644
--- a/net/sunrpc/cache.c
+++ b/net/sunrpc/cache.c
@@ -28,6 +28,7 @@
 #include <linux/workqueue.h>
 #include <linux/mutex.h>
 #include <linux/pagemap.h>
+#include <linux/smp_lock.h>
 #include <asm/ioctls.h>
 #include <linux/sunrpc/types.h>
 #include <linux/sunrpc/cache.h>