* [PATCH] block: renumber QUEUE_FLAG_HW_WC
@ 2023-12-26 8:15 Christoph Hellwig
2023-12-26 16:26 ` Jens Axboe
2023-12-26 16:28 ` Jens Axboe
0 siblings, 2 replies; 3+ messages in thread
From: Christoph Hellwig @ 2023-12-26 8:15 UTC (permalink / raw)
To: axboe; +Cc: linux-block
For the QUEUE_FLAG_HW_WC to actually work, it needs to have a separate
number from QUEUE_FLAG_FUA, doh.
Fixes: ebed8639d51b ("block: don't allow enabling a cache on devices that don't support it")
Signed-off-by: Christoph Hellwig <hch@lst.de>
---
include/linux/blkdev.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h
index bc236e77d85e1c..ce1ab712552e3c 100644
--- a/include/linux/blkdev.h
+++ b/include/linux/blkdev.h
@@ -521,7 +521,7 @@ struct request_queue {
#define QUEUE_FLAG_ADD_RANDOM 10 /* Contributes to random pool */
#define QUEUE_FLAG_SYNCHRONOUS 11 /* always completes in submit context */
#define QUEUE_FLAG_SAME_FORCE 12 /* force complete on same CPU */
-#define QUEUE_FLAG_HW_WC 18 /* Write back caching supported */
+#define QUEUE_FLAG_HW_WC 13 /* Write back caching supported */
#define QUEUE_FLAG_INIT_DONE 14 /* queue is initialized */
#define QUEUE_FLAG_STABLE_WRITES 15 /* don't modify blks until WB is done */
#define QUEUE_FLAG_POLL 16 /* IO polling enabled if set */
--
2.39.2
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] block: renumber QUEUE_FLAG_HW_WC
2023-12-26 8:15 [PATCH] block: renumber QUEUE_FLAG_HW_WC Christoph Hellwig
@ 2023-12-26 16:26 ` Jens Axboe
2023-12-26 16:28 ` Jens Axboe
1 sibling, 0 replies; 3+ messages in thread
From: Jens Axboe @ 2023-12-26 16:26 UTC (permalink / raw)
To: Christoph Hellwig; +Cc: linux-block
On 12/26/23 1:15 AM, Christoph Hellwig wrote:
> For the QUEUE_FLAG_HW_WC to actually work, it needs to have a separate
> number from QUEUE_FLAG_FUA, doh.
>
> Fixes: ebed8639d51b ("block: don't allow enabling a cache on devices that don't support it")
Not sure where that is from? Fixed it up to:
Fixes: 43c9835b144c ("block: don't allow enabling a cache on devices that don't support it")
--
Jens Axboe
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] block: renumber QUEUE_FLAG_HW_WC
2023-12-26 8:15 [PATCH] block: renumber QUEUE_FLAG_HW_WC Christoph Hellwig
2023-12-26 16:26 ` Jens Axboe
@ 2023-12-26 16:28 ` Jens Axboe
1 sibling, 0 replies; 3+ messages in thread
From: Jens Axboe @ 2023-12-26 16:28 UTC (permalink / raw)
To: Christoph Hellwig; +Cc: linux-block
On Tue, 26 Dec 2023 08:15:24 +0000, Christoph Hellwig wrote:
> For the QUEUE_FLAG_HW_WC to actually work, it needs to have a separate
> number from QUEUE_FLAG_FUA, doh.
>
>
Applied, thanks!
[1/1] block: renumber QUEUE_FLAG_HW_WC
(no commit info)
Best regards,
--
Jens Axboe
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-12-26 16:28 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-26 8:15 [PATCH] block: renumber QUEUE_FLAG_HW_WC Christoph Hellwig
2023-12-26 16:26 ` Jens Axboe
2023-12-26 16:28 ` Jens Axboe
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox