]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
afs: Unlock pages for __pagevec_release()
authorMarc Dionne <marc.dionne@auristor.com>
Sat, 13 Apr 2019 07:37:37 +0000 (08:37 +0100)
committerStefan Bader <stefan.bader@canonical.com>
Tue, 30 Jul 2019 10:58:17 +0000 (12:58 +0200)
commit4e1d0f26c01bb48e342e57b49e3c62268ce7c9be
tree9a0d3d19ebf27bfc4af971941acce84389f41b9c
parent042e7a12dd6eb81f7e8d140fefaee86565df6c27
afs: Unlock pages for __pagevec_release()

BugLink: https://bugs.launchpad.net/bugs/1836577
[ 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 <marc.dionne@auristor.com>
Signed-off-by: David Howells <dhowells@redhat.com>
Tested-by: Jonathan Billings <jsbillin@umich.edu>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
fs/afs/write.c