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>
[jh80.chung: Taken from Android Common Kernel repo]
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Change-Id: I9f5613271420a533376cda1be0869b107c9a8263
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;