Thread (63 messages) 63 messages, 9 authors, 2024-07-25

Re: [PATCH 14/26] block: move the nonrot flag to queue_limits

From: Keith Busch <kbusch@kernel.org>
Date: 2024-06-24 17:08:23
Also in: ceph-devel, dm-devel, linux-bcache, linux-block, linux-m68k, linux-mmc, linux-nvme, linux-raid, linux-s390, linux-scsi, linux-um, nvdimm, virtualization, xen-devel

On Mon, Jun 17, 2024 at 08:04:41AM +0200, Christoph Hellwig wrote:
-#define blk_queue_nonrot(q)	test_bit(QUEUE_FLAG_NONROT, &(q)->queue_flags)
+#define blk_queue_nonrot(q)	((q)->limits.features & BLK_FEAT_ROTATIONAL)
This is inverted. Should be:

 #define blk_queue_nonrot(q)	(!((q)->limits.features & BLK_FEAT_ROTATIONAL))
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help