Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp472405yba; Wed, 15 May 2019 04:44:51 -0700 (PDT) X-Google-Smtp-Source: APXvYqzfmUbOoDJ30GdSfVdViXPeuHOBMKOdHeqCJDg/TNRxOCu8LMepwyGNl7HUvwdLEab98j3o X-Received: by 2002:a65:4144:: with SMTP id x4mr44393745pgp.282.1557920691687; Wed, 15 May 2019 04:44:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557920691; cv=none; d=google.com; s=arc-20160816; b=S4kJCubYFWTd7bLY5koxYsgLQbCK8emokYwXQUYtgMq7nd/oZRfrIfiJrNF/KxDYIY szXE9nGuDhDRl0w9NoF2NtimG5HSIpaWylp6sdEDEdX3yuBXnjy082hFP8S5WtcC4bhh iLCBqghokv8bWBdGztfJaBADvuQFHIuIYsQOAJ7m19I7ipiGRSzVntxS3nMr8GPLHF3t UnXD6/jiovMfzZjo/+a5KyFztxCoUNgsUkw+0WZGRy1bGVjDWTPek1LrXInTwW3rpril XWByi380DhTLG16x2U8bZnZqOCutRKK26jgdxOUzd0Jtsp3BZTRetiERBFaYoR2DWSzM FYOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=/I/KRKvfO6TzbpQI76CTaIhu6XuWbiClJ8IX14K1ETE=; b=em2Ib5LE/UfkMwjJy5AGNtvpai6pwd58vi4Fi9pVTADt/Ct4aSjSF7miWqzWOFLxUr uGWXnML8L887ew8/ehaYbjQOD4Fqqs8bLl/gxRmS8oLvLooBETgmimhYm/yt+Gs92CEn 9e8/imfO3NDmBotWCaMG7SE3s6QMQE6fJW+niBUCQ51TP4ojodi0uvcMAHdoNmuDSBC8 o9LtYEHMiMsOmN4ou6MG7upFJoUG33yqu9mRhDDY4fub6N97D4672y7cckzZ1lp8RDsP 0PTGJL9w3natesrsfXusifEE4OSiHnna8XIoLlVStoFxzfcwsjnq5o8zVohVMqsxoX8b yNNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="xX77/xBW"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t9si1515662plq.396.2019.05.15.04.44.37; Wed, 15 May 2019 04:44:51 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="xX77/xBW"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732214AbfEOL1X (ORCPT + 99 others); Wed, 15 May 2019 07:27:23 -0400 Received: from mail.kernel.org ([198.145.29.99]:38248 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731373AbfEOL1V (ORCPT ); Wed, 15 May 2019 07:27:21 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id CA71F206BF; Wed, 15 May 2019 11:27:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1557919641; bh=ODSkC85um+xb2HLufxlD81zot8WRz6w5P6oSyh8mHLs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=xX77/xBWfewgRtlK6lYfilAfvAod4FJXpOxuslnbRo6eOaqz7847eO6mjecjE2XAO w/JJTw5zaWLyWJejzB9nnim2bhaCP5GrnANmEJNNRU4VFGLKoO1QOfspXHBswd8p85 uYjPTi5up38IuZev58SPfeCsg4Q6l2yqpljvu8FI= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Marc Dionne , David Howells , Jonathan Billings , Sasha Levin Subject: [PATCH 5.0 039/137] afs: Unlock pages for __pagevec_release() Date: Wed, 15 May 2019 12:55:20 +0200 Message-Id: <20190515090656.231699539@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190515090651.633556783@linuxfoundation.org> References: <20190515090651.633556783@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [ Upstream commit 21bd68f196ca91fc0f3d9bd1b32f6e530e8c1c88 ] __pagevec_release() complains loudly if any page in the vector is still locked. The pages need to be locked for generic_error_remove_page(), but that function doesn't actually unlock them. Unlock the pages afterwards. Signed-off-by: Marc Dionne Signed-off-by: David Howells Tested-by: Jonathan Billings Signed-off-by: Sasha Levin --- fs/afs/write.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/afs/write.c b/fs/afs/write.c index 72efcfcf9f95e..0122d7445fba1 100644 --- a/fs/afs/write.c +++ b/fs/afs/write.c @@ -264,6 +264,7 @@ static void afs_kill_pages(struct address_space *mapping, first = page->index + 1; lock_page(page); generic_error_remove_page(mapping, page); + unlock_page(page); } __pagevec_release(&pv); -- 2.20.1