Skip to content

Commit 72de6c0

Browse files
Christoph Hellwiggregkh
authored andcommitted
block: remove the blk_flush_integrity call in blk_integrity_unregister
[ Upstream commit e8bc14d ] 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 3df4996 ("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> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent dc537a7 commit 72de6c0

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

block/blk-integrity.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -397,8 +397,6 @@ void blk_integrity_unregister(struct gendisk *disk)
397397
if (!bi->profile)
398398
return;
399399

400-
/* ensure all bios are off the integrity workqueue */
401-
blk_flush_integrity();
402400
blk_queue_flag_clear(QUEUE_FLAG_STABLE_WRITES, disk->queue);
403401
memset(bi, 0, sizeof(*bi));
404402
}

0 commit comments

Comments
 (0)