]> www.infradead.org Git - nvme.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)
committerMikulas Patocka <mpatocka@redhat.com>
Fri, 28 Mar 2025 17:26:11 +0000 (18:26 +0100)
commit9c565428788fb9b49066f94ab7b10efc686a0a4c
tree903857e378af2777afef6f6bc3b61b37ca0d5bf4
parent2de510fccbca3d1906b55f4be5f1de83fa2424ef
dm-ebs: fix prefetch-vs-suspend race

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
drivers/md/dm-ebs-target.c