]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
nvmet-fcloop: access fcpreq only when holding reqlock
authorDaniel Wagner <wagi@kernel.org>
Wed, 7 May 2025 12:23:03 +0000 (14:23 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Jun 2025 13:32:32 +0000 (15:32 +0200)
commit1c09795ecee86c85cc61ddd3849f951170149f0b
treebc22ba3472015debfcfb2cbeae9e2224a5fffff5
parent3c04fafeb3ee233617c185b6bc6c3fe96e03b602
nvmet-fcloop: access fcpreq only when holding reqlock

[ Upstream commit 47a827cd7929d0550c3496d70b417fcb5649b27b ]

The abort handling logic expects that the state and the fcpreq are only
accessed when holding the reqlock lock.

While at it, only handle the aborts in the abort handler.

Signed-off-by: Daniel Wagner <wagi@kernel.org>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/nvme/target/fcloop.c