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>
Tue, 20 May 2025 03:34:26 +0000 (05:34 +0200)
commit47a827cd7929d0550c3496d70b417fcb5649b27b
tree95dbbbd6a6de95e6a3f435434655239a0218cc66
parent88ea8f814d8d006e78a4986a8c9e910788c8a5ec
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