X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=fs%2Fnfsd%2Fnfssvc.c;h=291dd8cd3214774934de8d85161bf1872994942b;hb=6a77f38946aaee1cd85eeec6cf4229b204c15071;hp=8a06919c7af381bc418e4551a91121ab9b81ed15;hpb=87fc8d1bb10cd459024a742c6a10961fefcef18f;p=linux-2.6.git diff --git a/fs/nfsd/nfssvc.c b/fs/nfsd/nfssvc.c index 8a06919c7..291dd8cd3 100644 --- a/fs/nfsd/nfssvc.c +++ b/fs/nfsd/nfssvc.c @@ -54,7 +54,7 @@ struct timeval nfssvc_boot; static struct svc_serv *nfsd_serv; static atomic_t nfsd_busy; static unsigned long nfsd_last_call; -static spinlock_t nfsd_call_lock = SPIN_LOCK_UNLOCKED; +static DEFINE_SPINLOCK(nfsd_call_lock); struct nfsd_list { struct list_head list; @@ -180,7 +180,6 @@ nfsd(struct svc_rqst *rqstp) /* Lock module and set up kernel thread */ lock_kernel(); daemonize("nfsd"); - current->rlim[RLIMIT_FSIZE].rlim_cur = RLIM_INFINITY; /* After daemonize() this kernel thread shares current->fs * with the init process. We need to create files with a