]> www.infradead.org Git - users/hch/misc.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)
committerChristoph Hellwig <hch@lst.de>
Mon, 12 May 2025 14:03:16 +0000 (16:03 +0200)
commit8dec83057ceea5e3f72ba58625d6e53ce77f1fc4
tree8840aad65bac96f2828eb25d8f4e8dbbc229106c
parentad1ce40796156959b7bc1388929efaf8536d8c33
nvmet-fcloop: access fcpreq only when holding reqlock

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>
drivers/nvme/target/fcloop.c