]> 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>
Fri, 27 Jun 2025 10:05:20 +0000 (11:05 +0100)
commit929d62e86f0c50084c8cee5537e3f7a5f8c4e0dc
tree8c3ac73f69debe8e5e3d32c5a2aeb3f904bf2b3e
parent64007aab1cf689333149c03aace6863c0ede9d24
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