aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/pagelist.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/nfs/pagelist.c')
-rw-r--r--fs/nfs/pagelist.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/nfs/pagelist.c b/fs/nfs/pagelist.c
index 2ffebf2081ce..03ed984ab4d8 100644
--- a/fs/nfs/pagelist.c
+++ b/fs/nfs/pagelist.c
@@ -95,7 +95,7 @@ nfs_iocounter_dec(struct nfs_io_counter *c)
95{ 95{
96 if (atomic_dec_and_test(&c->io_count)) { 96 if (atomic_dec_and_test(&c->io_count)) {
97 clear_bit(NFS_IO_INPROGRESS, &c->flags); 97 clear_bit(NFS_IO_INPROGRESS, &c->flags);
98 smp_mb__after_clear_bit(); 98 smp_mb__after_atomic();
99 wake_up_bit(&c->flags, NFS_IO_INPROGRESS); 99 wake_up_bit(&c->flags, NFS_IO_INPROGRESS);
100 } 100 }
101} 101}
@@ -193,9 +193,9 @@ void nfs_unlock_request(struct nfs_page *req)
193 printk(KERN_ERR "NFS: Invalid unlock attempted\n"); 193 printk(KERN_ERR "NFS: Invalid unlock attempted\n");
194 BUG(); 194 BUG();
195 } 195 }
196 smp_mb__before_clear_bit(); 196 smp_mb__before_atomic();
197 clear_bit(PG_BUSY, &req->wb_flags); 197 clear_bit(PG_BUSY, &req->wb_flags);
198 smp_mb__after_clear_bit(); 198 smp_mb__after_atomic();
199 wake_up_bit(&req->wb_flags, PG_BUSY); 199 wake_up_bit(&req->wb_flags, PG_BUSY);
200} 200}
201 201