]> 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>
Fri, 25 Apr 2025 08:43:44 +0000 (10:43 +0200)
commite89228ddd52aad892663e1c937a7c0e015876538
tree8a6e88ed266d60a85bd92e51a3cb64bd61c8f63c
parent0642f87cbf61d99142f526702a6897bcf5c4105c
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