nfs: no PG_private waiters remain, remove waker
authorNicholas Piggin <npiggin@gmail.com>
Tue, 3 Jan 2017 18:22:33 +0000 (04:22 +1000)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Wed, 8 Feb 2017 22:02:44 +0000 (17:02 -0500)
Since commit 4f52b6bb ("NFS: Don't call COMMIT in ->releasepage()"),
no tasks wait on PagePrivate, so the wake introduced in commit 95905446
("NFS: avoid deadlocks with loop-back mounted NFS filesystems.") can
be removed.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
fs/nfs/write.c

index ad4219a41f25eac0fee6ca8ef753f2f56f883bd3..e75b056f46f43583b84da4a423cbafedb850c630 100644 (file)
@@ -728,8 +728,6 @@ static void nfs_inode_remove_request(struct nfs_page *req)
                if (likely(head->wb_page && !PageSwapCache(head->wb_page))) {
                        set_page_private(head->wb_page, 0);
                        ClearPagePrivate(head->wb_page);
-                       smp_mb__after_atomic();
-                       wake_up_page(head->wb_page, PG_private);
                        clear_bit(PG_MAPPED, &head->wb_flags);
                }
                nfsi->nrequests--;