Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 58be7c10 authored by Marc Dionne's avatar Marc Dionne Committed by Greg Kroah-Hartman
Browse files

afs: Unlock pages for __pagevec_release()



[ 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: default avatarMarc Dionne <marc.dionne@auristor.com>
Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
Tested-by: default avatarJonathan Billings <jsbillin@umich.edu>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 08f2c299
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -253,6 +253,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);