Christoph Hellwig 783a40a1b3 block: check if a profile is actually registered in blk_integrity_unregister
While clearing the profile itself is harmless, we really should not clear
the stable writes flag if it wasn't set due to a registered integrity
profile.

Reported-by: Lihong Kou <koulihong@huawei.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Link: https://lore.kernel.org/r/20210914070657.87677-2-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2021-09-14 20:03:30 -06:00
..
2021-08-30 18:52:11 -07:00
2021-08-18 07:21:12 -06:00
2021-08-30 18:52:11 -07:00
2021-08-30 19:30:30 -07:00
2021-08-17 20:17:34 -06:00
2021-08-30 18:52:11 -07:00
2021-08-30 18:52:11 -07:00
2021-06-17 15:51:20 +02:00
2021-08-30 19:30:30 -07:00
2020-03-17 20:55:21 +01:00
2021-09-11 10:19:51 -07:00
2021-09-02 15:09:46 -07:00
2021-09-11 10:19:51 -07:00