> This patch tries to avoid EAGAIN due to nrpages!=0 that was originally trying > to drop stale pages resulting in wrong data access. > Report: https://bugs.chromium.org/p/chromium/issues/detail?id=938958#c38 > > Cc: <stable@xxxxxxxxxxxxxxx> > Cc: Jens Axboe <axboe@xxxxxxxxx> > Cc: linux-block@xxxxxxxxxxxxxxx > Cc: Bart Van Assche <bvanassche@xxxxxxx> > Fixes: 5db470e229e2 ("loop: drop caches if offset or block_size are changed") > Reported-by: Gwendal Grignou <gwendal@xxxxxxxxxxxx> > Reported-by: grygorii tertychnyi <gtertych@xxxxxxxxx> > Signed-off-by: Jaegeuk Kim <jaegeuk@xxxxxxxxxx> > --- > v2 from v1: > - remove obsolete jump FWIW, after applying this patch to 4.19.47, losetup is not failing any more for me. Thanks, Francesco Ruggeri