patch-2.4.0-test1 linux/fs/nfs/flushd.c
Next file: linux/fs/nfs/inode.c
Previous file: linux/fs/ncpfs/ioctl.c
Back to the patch index
Back to the overall index
- Lines: 17
- Date:
Wed May 24 09:46:22 2000
- Orig file:
v2.3.99-pre9/linux/fs/nfs/flushd.c
- Orig date:
Wed Apr 26 16:34:09 2000
diff -u --recursive --new-file v2.3.99-pre9/linux/fs/nfs/flushd.c linux/fs/nfs/flushd.c
@@ -136,6 +136,7 @@
return -ENOMEM;
memset(cache, 0, sizeof(*cache));
+ atomic_set(&cache->nr_requests, 0);
init_waitqueue_head(&cache->request_wait);
server->rw_requests = cache;
@@ -280,7 +281,7 @@
cache->runat = jiffies + task->tk_timeout;
spin_lock(&nfs_flushd_lock);
- if (!cache->nr_requests && !cache->inodes) {
+ if (!atomic_read(&cache->nr_requests) && !cache->inodes) {
cache->task = NULL;
task->tk_action = NULL;
} else
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)