]> www.infradead.org Git - users/jedix/linux-maple.git/commit
dm vdo indexer: don't read request structure after enqueuing
authorMatthew Sakai <msakai@redhat.com>
Tue, 13 May 2025 01:10:10 +0000 (21:10 -0400)
committerMikulas Patocka <mpatocka@redhat.com>
Thu, 15 May 2025 13:54:47 +0000 (15:54 +0200)
commit3da732687d72078e52cc7f334a482383e84ca156
treeb30c50afa58d9c74ef9b14b017cb150cb7608342
parente93912786e50804e7c53456da75d586cace8732f
dm vdo indexer: don't read request structure after enqueuing

The function get_volume_page_protected may place a request on
a queue for another thread to process asynchronously. When this
happens, the volume should not read the request from the original
thread. This can not currently cause problems, due to the way
request processing is handled, but it is not safe in general.

Reviewed-by: Ken Raeburn <raeburn@redhat.com>
Signed-off-by: Matthew Sakai <msakai@redhat.com>
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
drivers/md/dm-vdo/indexer/volume.c