]> www.infradead.org Git - users/hch/block.git/commit
xen-blkfront: don't disable cache flushes when they fail
authorChristoph Hellwig <hch@lst.de>
Thu, 30 May 2024 06:58:52 +0000 (08:58 +0200)
committerChristoph Hellwig <hch@lst.de>
Sun, 16 Jun 2024 09:22:29 +0000 (11:22 +0200)
commit05c0e511c5e6a304dffeab8ae7329525e7a0dba2
tree06d50af9510f3cdea2cba3b2bc207774a2937044
parentc6e56cf6b2e79a463af21286ba951714ed20828c
xen-blkfront: don't disable cache flushes when they fail

blkfront always had a robust negotiation protocol for detecting a write
cache.  Stop simply disabling cache flushes in the block layer as the
flags handling is moving to the atomic queue limits API that needs
user context to freeze the queue for that.  Instead handle the case
of the feature flags cleared inside of blkfront.  This removes old
debug code to check for such a mismatch which was previously impossible
to hit, including the check for passthrough requests that blkfront
never used to start with.

Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/block/xen-blkfront.c