]> www.infradead.org Git - nvme.git/commit
block: remove the blk_flush_integrity call in blk_integrity_unregister
authorChristoph Hellwig <hch@lst.de>
Thu, 13 Jun 2024 08:48:16 +0000 (10:48 +0200)
committerJens Axboe <axboe@kernel.dk>
Fri, 14 Jun 2024 16:20:06 +0000 (10:20 -0600)
commite8bc14d116aeac8f0f133ec8d249acf4e0658da7
tree240609617e5a4e7efb5a2662cc3fed8d51a756fc
parente9f5f44ad3725335d9c559c3c22cd3726152a7b1
block: remove the blk_flush_integrity call in blk_integrity_unregister

Now that there are no indirect calls for PI processing there is no
way to dereference a NULL pointer here.  Additionally drivers now always
freeze the queue (or in case of stacking drivers use their internal
equivalent) around changing the integrity profile.

This is effectively a revert of commit 3df49967f6f1 ("block: flush the
integrity workqueue in blk_integrity_unregister").

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Link: https://lore.kernel.org/r/20240613084839.1044015-7-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-integrity.c