From: Christoph Hellwig <hch@lst.de>
To: axboe@kernel.dk
Cc: Gulam Mohamed <gulam.mohamed@oracle.com>,
Ming Lei <ming.lei@redhat.com>,
linux-block@vger.kernel.org
Subject: Re: fix a race between del_gendisk and BLKRRPART v2
Date: Thu, 20 May 2021 10:14:46 +0200 [thread overview]
Message-ID: <20210520081446.GA30422@lst.de> (raw)
In-Reply-To: <20210514131842.1600568-1-hch@lst.de>
Jens,
can you take a look at these?
On Fri, May 14, 2021 at 03:18:40PM +0200, Christoph Hellwig wrote:
> 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.
>
> Changes since v1:
> - fix the GENHD_FL_UP check in __blkdev_get
> - don't change where remove_inode_hash is called for now
> - improve the commit message
>
> Diffstat:
> block/genhd.c | 11 +----------
> fs/block_dev.c | 18 ++++++++----------
> include/linux/genhd.h | 2 --
> 3 files changed, 9 insertions(+), 22 deletions(-)
---end quoted text---
next prev parent reply other threads:[~2021-05-20 8:14 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-14 13:18 fix a race between del_gendisk and BLKRRPART v2 Christoph Hellwig
2021-05-14 13:18 ` [PATCH 1/2] block: prevent block device lookups at the beginning of del_gendisk Christoph Hellwig
2021-05-15 6:34 ` Ming Lei
2021-05-20 17:37 ` Gulam Mohamed
2021-05-14 13:18 ` [PATCH 2/2] block: fix a race between del_gendisk and BLKRRPART Christoph Hellwig
2021-05-15 6:35 ` Ming Lei
2021-05-20 17:37 ` Gulam Mohamed
2021-05-20 8:14 ` Christoph Hellwig [this message]
2021-05-20 13:59 ` fix a race between del_gendisk and BLKRRPART v2 Jens Axboe
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=20210520081446.GA30422@lst.de \
--to=hch@lst.de \
--cc=axboe@kernel.dk \
--cc=gulam.mohamed@oracle.com \
--cc=linux-block@vger.kernel.org \
--cc=ming.lei@redhat.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox