diff options
| -rw-r--r-- | block/blk-settings.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/block/blk-settings.c b/block/blk-settings.c index dd1f1e0e196f..6ae118d6e193 100644 --- a/block/blk-settings.c +++ b/block/blk-settings.c | |||
| @@ -554,11 +554,18 @@ int blk_stack_limits(struct queue_limits *t, struct queue_limits *b, | |||
| 554 | ret = -1; | 554 | ret = -1; |
| 555 | } | 555 | } |
| 556 | 556 | ||
| 557 | /* | ||
| 558 | * Temporarily disable discard granularity. It's currently buggy | ||
| 559 | * since we default to 0 for discard_granularity, hence this | ||
| 560 | * "failure" will always trigger for non-zero offsets. | ||
| 561 | */ | ||
| 562 | #if 0 | ||
| 557 | if (offset && | 563 | if (offset && |
| 558 | (offset & (b->discard_granularity - 1)) != b->discard_alignment) { | 564 | (offset & (b->discard_granularity - 1)) != b->discard_alignment) { |
| 559 | t->discard_misaligned = 1; | 565 | t->discard_misaligned = 1; |
| 560 | ret = -1; | 566 | ret = -1; |
| 561 | } | 567 | } |
| 568 | #endif | ||
| 562 | 569 | ||
| 563 | /* If top has no alignment offset, inherit from bottom */ | 570 | /* If top has no alignment offset, inherit from bottom */ |
| 564 | if (!t->alignment_offset) | 571 | if (!t->alignment_offset) |
