archive mirror
 help / color / mirror / Atom feed
From: Christoph Hellwig <>
Cc: Gulam Mohamed <>,
	Ming Lei <>,
Subject: fix a race between del_gendisk and BLKRRPART
Date: Wed, 12 May 2021 18:50:48 +0200	[thread overview]
Message-ID: <> (raw)

Hi all,

this is based of a patch from Gulam and suggestions from Ming and fixes a
race between del_gendisk and BLKRRPART while also removing a global lock.

 block/genhd.c         |   19 ++-----------------
 fs/block_dev.c        |   12 ++++--------
 include/linux/genhd.h |    2 --
 3 files changed, 6 insertions(+), 27 deletions(-)

             reply	other threads:[~2021-05-12 17:31 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-12 16:50 Christoph Hellwig [this message]
2021-05-12 16:50 ` [PATCH 1/2] block: prevent block device lookups at the beginning of del_gendisk Christoph Hellwig
2021-05-13  0:11   ` Ming Lei
2021-05-12 16:50 ` [PATCH 2/2] block: fix a race between del_gendisk and BLKRRPART Christoph Hellwig

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:

* 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
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).