All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mike Snitzer <snitzer@kernel.org>
To: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Mike Snitzer <snitzer@kernel.org>,
	linux-block@vger.kernel.org, dm-devel@redhat.com,
	Li Lingfeng <lilingfeng3@huawei.com>,
	Alasdair G Kergon <agk@redhat.com>
Subject: [dm-devel] [git pull] device mapper fixes for 6.4-rc7
Date: Thu, 15 Jun 2023 13:56:30 -0400	[thread overview]
Message-ID: <ZItQzl4ommfR82jP@redhat.com> (raw)

Hi Linus,

The following changes since commit f1fcbaa18b28dec10281551dfe6ed3a3ed80e3d6:

  Linux 6.4-rc2 (2023-05-14 12:51:40 -0700)

are available in the Git repository at:

  git://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm.git tags/for-6.4/dm-fixes

for you to fetch changes up to be04c14a1bd262a49e5764e5cf864259b7e740fd:

  dm: use op specific max_sectors when splitting abnormal io (2023-06-15
  12:47:16 -0400)

Please pull, thanks.
Mike

----------------------------------------------------------------
- Fix DM thinp discard performance regression introduced during 6.4
  merge; where DM core was splitting large discards every 128K
  (max_sectors_kb) rather than every 64M (discard_max_bytes).

- Extend DM core LOCKFS fix, made during 6.4 merge, to also fix race
  between do_mount and dm's do_suspend (in addition to the earlier
  fix's do_mount race with dm's do_resume).

- Fix DM thin metadata operations to first check if the thin-pool is
  in "fail_io" mode; otherwise UAF can occur.

- Fix DM thinp's call to __blkdev_issue_discard to use GFP_NOIO rather
  than GFP_NOWAIT (__blkdev_issue_discard cannot handle NULL return
  from bio_alloc).
-----BEGIN PGP SIGNATURE-----

iQEzBAABCAAdFiEEJfWUX4UqZ4x1O2wixSPxCi2dA1oFAmSLTh0ACgkQxSPxCi2d
A1rmqggAildPKBjT8nqZmU86lpsy60E03OwvBnGPkMF5pjkOUmTjkb5EWVSAmeuO
ojj0pWlC+1ZvVkiDfkWxt0NL/4ETD4q+5oy1ARBcOawPX6bj0eXLoBr6m10b+KOb
mKAoXgYrESEzQ2qPBe4a4Lj3zIBXzXpMpW9TtF23z4HnDpnwpED5xNPWBgiWc3O/
/6MF1ASLp0DWldoL+gmIp9hEzyQzbzgM4uBOGC4UAYk3U1I55qwX6bWDZ9cQNGMh
AqCSrphuKHvbsb31yb1X3hB3g1XbAeSvvcizgFY0g9ZpncddKm5gx0BWVDO7qGBG
UxLIec19kQ2CIEx/QJZIhEjneLlJ/g==
=mME4
-----END PGP SIGNATURE-----

----------------------------------------------------------------
Li Lingfeng (2):
      dm: don't lock fs when the map is NULL during suspend or resume
      dm thin metadata: check fail_io before using data_sm

Mike Snitzer (2):
      dm thin: fix issue_discard to pass GFP_NOIO to __blkdev_issue_discard
      dm: use op specific max_sectors when splitting abnormal io

 drivers/md/dm-ioctl.c         |  5 +----
 drivers/md/dm-thin-metadata.c | 20 ++++++++++++--------
 drivers/md/dm-thin.c          |  3 +--
 drivers/md/dm.c               | 29 ++++++++++++++++++++---------
 4 files changed, 34 insertions(+), 23 deletions(-)

--
dm-devel mailing list
dm-devel@redhat.com
https://listman.redhat.com/mailman/listinfo/dm-devel


WARNING: multiple messages have this Message-ID (diff)
From: Mike Snitzer <snitzer@kernel.org>
To: Linus Torvalds <torvalds@linux-foundation.org>
Cc: dm-devel@redhat.com, linux-block@vger.kernel.org,
	Alasdair G Kergon <agk@redhat.com>,
	Benjamin Marzinski <bmarzins@redhat.com>,
	Li Lingfeng <lilingfeng3@huawei.com>,
	Mike Snitzer <snitzer@kernel.org>
Subject: [git pull] device mapper fixes for 6.4-rc7
Date: Thu, 15 Jun 2023 13:56:30 -0400	[thread overview]
Message-ID: <ZItQzl4ommfR82jP@redhat.com> (raw)

Hi Linus,

The following changes since commit f1fcbaa18b28dec10281551dfe6ed3a3ed80e3d6:

  Linux 6.4-rc2 (2023-05-14 12:51:40 -0700)

are available in the Git repository at:

  git://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm.git tags/for-6.4/dm-fixes

for you to fetch changes up to be04c14a1bd262a49e5764e5cf864259b7e740fd:

  dm: use op specific max_sectors when splitting abnormal io (2023-06-15
  12:47:16 -0400)

Please pull, thanks.
Mike

----------------------------------------------------------------
- Fix DM thinp discard performance regression introduced during 6.4
  merge; where DM core was splitting large discards every 128K
  (max_sectors_kb) rather than every 64M (discard_max_bytes).

- Extend DM core LOCKFS fix, made during 6.4 merge, to also fix race
  between do_mount and dm's do_suspend (in addition to the earlier
  fix's do_mount race with dm's do_resume).

- Fix DM thin metadata operations to first check if the thin-pool is
  in "fail_io" mode; otherwise UAF can occur.

- Fix DM thinp's call to __blkdev_issue_discard to use GFP_NOIO rather
  than GFP_NOWAIT (__blkdev_issue_discard cannot handle NULL return
  from bio_alloc).
-----BEGIN PGP SIGNATURE-----

iQEzBAABCAAdFiEEJfWUX4UqZ4x1O2wixSPxCi2dA1oFAmSLTh0ACgkQxSPxCi2d
A1rmqggAildPKBjT8nqZmU86lpsy60E03OwvBnGPkMF5pjkOUmTjkb5EWVSAmeuO
ojj0pWlC+1ZvVkiDfkWxt0NL/4ETD4q+5oy1ARBcOawPX6bj0eXLoBr6m10b+KOb
mKAoXgYrESEzQ2qPBe4a4Lj3zIBXzXpMpW9TtF23z4HnDpnwpED5xNPWBgiWc3O/
/6MF1ASLp0DWldoL+gmIp9hEzyQzbzgM4uBOGC4UAYk3U1I55qwX6bWDZ9cQNGMh
AqCSrphuKHvbsb31yb1X3hB3g1XbAeSvvcizgFY0g9ZpncddKm5gx0BWVDO7qGBG
UxLIec19kQ2CIEx/QJZIhEjneLlJ/g==
=mME4
-----END PGP SIGNATURE-----

----------------------------------------------------------------
Li Lingfeng (2):
      dm: don't lock fs when the map is NULL during suspend or resume
      dm thin metadata: check fail_io before using data_sm

Mike Snitzer (2):
      dm thin: fix issue_discard to pass GFP_NOIO to __blkdev_issue_discard
      dm: use op specific max_sectors when splitting abnormal io

 drivers/md/dm-ioctl.c         |  5 +----
 drivers/md/dm-thin-metadata.c | 20 ++++++++++++--------
 drivers/md/dm-thin.c          |  3 +--
 drivers/md/dm.c               | 29 ++++++++++++++++++++---------
 4 files changed, 34 insertions(+), 23 deletions(-)

             reply	other threads:[~2023-06-15 17:56 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-15 17:56 Mike Snitzer [this message]
2023-06-15 17:56 ` [git pull] device mapper fixes for 6.4-rc7 Mike Snitzer
2023-06-16  4:16 ` pr-tracker-bot
2023-06-16  4:16   ` [dm-devel] " pr-tracker-bot

Reply instructions:

You may reply publicly 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:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

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

  git send-email \
    --in-reply-to=ZItQzl4ommfR82jP@redhat.com \
    --to=snitzer@kernel.org \
    --cc=agk@redhat.com \
    --cc=dm-devel@redhat.com \
    --cc=lilingfeng3@huawei.com \
    --cc=linux-block@vger.kernel.org \
    --cc=torvalds@linux-foundation.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.