]> www.infradead.org Git - users/hch/misc.git/commitdiff
block: update blk_stack_limits documentation
authorChristoph Hellwig <hch@lst.de>
Mon, 4 Nov 2024 05:42:18 +0000 (06:42 +0100)
committerJens Axboe <axboe@kernel.dk>
Mon, 4 Nov 2024 17:33:20 +0000 (10:33 -0700)
Listing every single features that needs to be pre-set by stacking
drivers does not scale.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20241104054218.45596-1-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-settings.c

index 95fc39d098721157305d790eb9fe42a633558882..5ee3d6d1448dfbdd8a78bdca607cb63c7c96743e 100644 (file)
@@ -508,10 +508,10 @@ int blk_stack_limits(struct queue_limits *t, struct queue_limits *b,
        t->features |= (b->features & BLK_FEAT_INHERIT_MASK);
 
        /*
-        * BLK_FEAT_NOWAIT and BLK_FEAT_POLL need to be supported both by the
-        * stacking driver and all underlying devices.  The stacking driver sets
-        * the flags before stacking the limits, and this will clear the flags
-        * if any of the underlying devices does not support it.
+        * Some feaures need to be supported both by the stacking driver and all
+        * underlying devices.  The stacking driver sets these flags before
+        * stacking the limits, and this will clear the flags if any of the
+        * underlying devices does not support it.
         */
        if (!(b->features & BLK_FEAT_NOWAIT))
                t->features &= ~BLK_FEAT_NOWAIT;