From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pg0-f72.google.com (mail-pg0-f72.google.com [74.125.83.72]) by kanga.kvack.org (Postfix) with ESMTP id 1E7906B0253 for ; Tue, 3 Jan 2017 13:22:58 -0500 (EST) Received: by mail-pg0-f72.google.com with SMTP id a190so1249958505pgc.0 for ; Tue, 03 Jan 2017 10:22:58 -0800 (PST) Received: from mail-pg0-x244.google.com (mail-pg0-x244.google.com. [2607:f8b0:400e:c05::244]) by mx.google.com with ESMTPS id q8si69666975pgc.289.2017.01.03.10.22.57 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 03 Jan 2017 10:22:57 -0800 (PST) Received: by mail-pg0-x244.google.com with SMTP id n5so34265159pgh.3 for ; Tue, 03 Jan 2017 10:22:57 -0800 (PST) From: Nicholas Piggin Subject: [PATCH 1/2] nfs: no PG_private waiters remain, remove waker Date: Wed, 4 Jan 2017 04:22:33 +1000 Message-Id: <20170103182234.30141-2-npiggin@gmail.com> In-Reply-To: <20170103182234.30141-1-npiggin@gmail.com> References: <20170103182234.30141-1-npiggin@gmail.com> Sender: owner-linux-mm@kvack.org List-ID: To: Andrew Morton Cc: Nicholas Piggin , linux-nfs@vger.kernel.org, linux-mm@kvack.org, NeilBrown , Trond Myklebust 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 --- fs/nfs/write.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/fs/nfs/write.c b/fs/nfs/write.c index b00d53d13d47..006068526542 100644 --- a/fs/nfs/write.c +++ b/fs/nfs/write.c @@ -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--; -- 2.11.0 -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org