diff options
| author | Yu Kuai <yukuai@fygo.io> | 2026-06-05 15:26:38 +0800 |
|---|---|---|
| committer | Yu Kuai <yukuai@fygo.io> | 2026-06-21 03:16:24 +0800 |
| commit | 90573092673cdbb2f28f0932fd40de65c3f762cf (patch) | |
| tree | a7b759db85c5edd2fa9e39ceb58bcc42bd56f001 /include/linux/timerqueue.h | |
| parent | 74ddbf98e2db646ec58f7e7731c936b7a4a470fe (diff) | |
md/raid5: validate discard support at request time
Raid5 used to disable discard limits when devices_handle_discard_safely
was not set or when stacked member limits could not support a full-stripe
discard. That hides discard from userspace before raid5 can decide whether
a request can be handled safely.
Follow other virtual drivers and advertise a UINT_MAX discard limit for the
md device. Cache lower discard support in r5conf when setting queue limits,
and reject unsupported discard bios before queuing stripe work.
Link: https://patch.msgid.link/20260605072639.2434847-3-yukuai@kernel.org
Signed-off-by: Yu Kuai <yukuai@fygo.io>
Diffstat (limited to 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions
