]> www.infradead.org Git - nvme.git/commit
xen-blkfront: don't disable cache flushes when they fail
authorChristoph Hellwig <hch@lst.de>
Mon, 17 Jun 2024 06:04:28 +0000 (08:04 +0200)
committerJens Axboe <axboe@kernel.dk>
Wed, 19 Jun 2024 13:58:27 +0000 (07:58 -0600)
commitdd9300e9eaeeb212f77ffeb72d1d8756107f1f1f
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>
Acked-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Link: https://lore.kernel.org/r/20240617060532.127975-2-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/xen-blkfront.c