Skip to content

Commit 02d374f

Browse files
Christoph Hellwigaxboe
authored andcommitted
block: renumber QUEUE_FLAG_HW_WC
For the QUEUE_FLAG_HW_WC to actually work, it needs to have a separate number from QUEUE_FLAG_FUA, doh. Fixes: 43c9835 ("block: don't allow enabling a cache on devices that don't support it") Signed-off-by: Christoph Hellwig <hch@lst.de> Link: https://lore.kernel.org/r/20231226081524.180289-1-hch@lst.de Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent 146e843 commit 02d374f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

include/linux/blkdev.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,7 @@ struct request_queue {
538538
#define QUEUE_FLAG_ADD_RANDOM 10 /* Contributes to random pool */
539539
#define QUEUE_FLAG_SYNCHRONOUS 11 /* always completes in submit context */
540540
#define QUEUE_FLAG_SAME_FORCE 12 /* force complete on same CPU */
541-
#define QUEUE_FLAG_HW_WC 18 /* Write back caching supported */
541+
#define QUEUE_FLAG_HW_WC 13 /* Write back caching supported */
542542
#define QUEUE_FLAG_INIT_DONE 14 /* queue is initialized */
543543
#define QUEUE_FLAG_STABLE_WRITES 15 /* don't modify blks until WB is done */
544544
#define QUEUE_FLAG_POLL 16 /* IO polling enabled if set */

0 commit comments

Comments
 (0)