Linux-Block Archive on
 help / color / Atom feed
From: (Francesco Ruggeri)
Subject: Re: [PATCH v2] loop: avoid EAGAIN, if offset or block size are changed
Date: Mon, 10 Jun 2019 14:49:54 -0700
Message-ID: <> (raw)

> This patch tries to avoid EAGAIN due to nrpages!=0 that was originally trying
> to drop stale pages resulting in wrong data access.
> Report:
> Cc: <>
> Cc: Jens Axboe <>
> Cc:
> Cc: Bart Van Assche <>
> Fixes: 5db470e229e2 ("loop: drop caches if offset or block_size are changed")
> Reported-by: Gwendal Grignou <>
> Reported-by: grygorii tertychnyi <>
> Signed-off-by: Jaegeuk Kim <>
> ---
> v2 from v1:
>  - remove obsolete jump

FWIW, after applying this patch to 4.19.47, losetup is not failing any
more for me.

Francesco Ruggeri

             reply index

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-06-10 21:49 fruggeri [this message]
  -- strict thread matches above, loose matches on Subject: below --
2019-05-18  0:47 [PATCH] loop: avoid EAGAIN, if offset or block_size " Jaegeuk Kim
2019-05-18  0:53 ` [PATCH v2] " Jaegeuk Kim

Reply instructions:

You may reply publically to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \ \ \ \ \ \ \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

Linux-Block Archive on

Archives are clonable:
	git clone --mirror linux-block/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-block linux-block/ \
	public-inbox-index linux-block

Newsgroup available over NNTP:

AGPL code for this site: git clone public-inbox