diff mbox series

block: update blk_stack_limits documentation

Message ID 20241104054218.45596-1-hch@lst.de (mailing list archive)
State New
Headers show
Series block: update blk_stack_limits documentation | expand

Commit Message

Christoph Hellwig Nov. 4, 2024, 5:42 a.m. UTC
Listing every single features that needs to be pre-set by stacking
drivers does not scale.

Signed-off-by: Christoph Hellwig <hch@lst.de>
---
 block/blk-settings.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

Comments

Jens Axboe Nov. 4, 2024, 5:35 p.m. UTC | #1
On Mon, 04 Nov 2024 06:42:18 +0100, Christoph Hellwig wrote:
> Listing every single features that needs to be pre-set by stacking
> drivers does not scale.
> 
> 

Applied, thanks!

[1/1] block: update blk_stack_limits documentation
      (no commit info)

Best regards,
diff mbox series

Patch

diff --git a/block/blk-settings.c b/block/blk-settings.c
index 95fc39d09872..5ee3d6d1448d 100644
--- a/block/blk-settings.c
+++ b/block/blk-settings.c
@@ -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;