]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
dm-ebs: fix prefetch-vs-suspend race
authorMikulas Patocka <mpatocka@redhat.com>
Fri, 28 Mar 2025 15:19:07 +0000 (16:19 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 20 Apr 2025 08:15:53 +0000 (10:15 +0200)
commita1a4fdc33d9cf4953b9daa22e3b6abb4ed1bd85e
tree6ce0b2885c93f44006425d9fb026576712bafd36
parent08deafddfcb0380787c7239e57d9b68dd2d29afa
dm-ebs: fix prefetch-vs-suspend race

commit 9c565428788fb9b49066f94ab7b10efc686a0a4c upstream.

There's a possible race condition in dm-ebs - dm bufio prefetch may be in
progress while the device is suspended. Fix this by calling
dm_bufio_client_reset in the postsuspend hook.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Cc: stable@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/md/dm-ebs-target.c