X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=fs%2Fnfsd%2Fnfscache.c;h=a3236dfedf98ba4fabdf16b915799ad788c7454a;hb=6a77f38946aaee1cd85eeec6cf4229b204c15071;hp=9ab14f56d216c18bcc96b5791b01e21164404f2a;hpb=87fc8d1bb10cd459024a742c6a10961fefcef18f;p=linux-2.6.git diff --git a/fs/nfsd/nfscache.c b/fs/nfsd/nfscache.c index 9ab14f56d..a3236dfed 100644 --- a/fs/nfsd/nfscache.c +++ b/fs/nfsd/nfscache.c @@ -48,7 +48,7 @@ static int nfsd_cache_append(struct svc_rqst *rqstp, struct kvec *vec); * A cache entry is "single use" if c_state == RC_INPROG * Otherwise, it when accessing _prev or _next, the lock must be held. */ -static spinlock_t cache_lock = SPIN_LOCK_UNLOCKED; +static DEFINE_SPINLOCK(cache_lock); void nfsd_cache_init(void)