]> git.hungrycats.org Git - linux/commit
fbdev/defio: Early-out if page is already enlisted
authorThomas Zimmermann <tzimmermann@suse.de>
Fri, 11 Feb 2022 09:46:39 +0000 (10:46 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 23 Feb 2024 07:55:12 +0000 (08:55 +0100)
commit5d3aff76a3165087b0f897c0d677dfa987d9875d
tree0b1072d97c047ec6cf619899948a7b206f7762ba
parent48a09969e43e6564e65cc544d8760b073ac2c802
fbdev/defio: Early-out if page is already enlisted

[ Upstream commit 105a940416fc622406653b6fe54732897642dfbc ]

Return early if a page is already in the list of dirty pages for
deferred I/O. This can be detected if the page's list head is not
empty. Keep the list head initialized while the page is not enlisted
to make this work reliably.

v2:
* update comment and fix spelling (Sam)

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Acked-by: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20220211094640.21632-2-tzimmermann@suse.de
Stable-dep-of: 33cd6ea9c067 ("fbdev: flush deferred IO before closing")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/video/fbdev/core/fb_defio.c