ANDROID: "Revert: dm: Split zoned writes at the top of the stack"

Prepare for backporting a different solution from the upstream kernel.

This reverts commit 9464dc3f22.

Bug: 417517944
Change-Id: Ifaec9dca94648f845cb57bc85371eec693ff26f5
Signed-off-by: Bart Van Assche <bvanassche@google.com>
This commit is contained in:
Bart Van Assche
2025-06-25 10:31:10 -07:00
parent 8c8d462c9d
commit 1895d73589

View File

@@ -1788,14 +1788,11 @@ static inline bool dm_zone_bio_needs_split(struct mapped_device *md,
struct bio *bio)
{
/*
* For a mapped device that needs zone append emulation, we must
* split any large BIO that straddles zone boundaries. Additionally,
* split sequential zoned writes to prevent that splitting lower in the
* stack causes bio reordering.
* For mapped device that need zone append emulation, we must
* split any large BIO that straddles zone boundaries.
*/
return ((dm_emulate_zone_append(md) && bio_straddles_zones(bio)) ||
(bio_op(bio) == REQ_OP_WRITE && bdev_is_zoned(bio->bi_bdev))) &&
!bio_flagged(bio, BIO_ZONE_WRITE_PLUGGING);
return dm_emulate_zone_append(md) && bio_straddles_zones(bio) &&
!bio_flagged(bio, BIO_ZONE_WRITE_PLUGGING);
}
static inline bool dm_zone_plug_bio(struct mapped_device *md, struct bio *bio)
{