]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
dasd: also call __invalidate_device when setting the device offline
authorChristoph Hellwig <hch@lst.de>
Fri, 11 Aug 2023 10:08:22 +0000 (12:08 +0200)
committerChristian Brauner <brauner@kernel.org>
Mon, 21 Aug 2023 12:35:31 +0000 (14:35 +0200)
commit2527fd38772fea30c1d1cbf94839a0bbf4122133
tree50c741bacf5955667d194117c653c4ed5de4bb27
parent2c0326c587965a40c4013361b1f4d0e5cca5194e
dasd: also call __invalidate_device when setting the device offline

Don't just write out the data, but also invalidate all caches when setting
the device offline.  Stop canceling the offlining when writeback fails
as there is no way to recover from that anyway.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Message-Id: <20230811100828.1897174-12-hch@lst.de>
Signed-off-by: Christian Brauner <brauner@kernel.org>
drivers/s390/block/dasd.c