mirror of
https://github.com/nxp-imx/linux-imx.git
synced 2025-07-14 21:29:37 +02:00
ANDROID: dm-bow: Pass through zero sized requests
Zero sized requests appeared in 5.15, and break validation logic in user space. Simply pass through, as there is no reason to handle. aosp/3238494 enables checkpoints on ext4 in cuttlefish, get this too With all the patches in place, run: launch_cvd \ -userdata_format="ext4" \ --data_policy=always_create --blank_data_image_mb=16000 then run atest vts_kernel_checkpoint_test Test: atest vts_kernel_checkpoint_test passes Bug: 210958368 Signed-off-by: Paul Lawrence <paullawrence@google.com> Change-Id: I3bc8037dc53e02f10c3f41de2f1176e774482815
This commit is contained in:
parent
4b5ae75dd7
commit
facb781dc9
|
@ -1125,6 +1125,9 @@ static int dm_bow_map(struct dm_target *ti, struct bio *bio)
|
|||
if (bio_data_dir(bio) == READ && bio->bi_iter.bi_sector != 0)
|
||||
return remap_unless_illegal_trim(bc, bio);
|
||||
|
||||
if (bio->bi_iter.bi_size == 0)
|
||||
return remap_unless_illegal_trim(bc, bio);
|
||||
|
||||
if (atomic_read(&bc->state) != COMMITTED) {
|
||||
enum state state;
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user