linux-block.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jens Axboe <axboe@kernel.dk>
To: Jan Kara <jack@suse.cz>
Cc: linux-block@vger.kernel.org
Subject: Re: [PATCH 0/2] bdev: Refresh bdev size for disks without partitioning
Date: Sun, 3 Nov 2019 07:53:10 -0700	[thread overview]
Message-ID: <bdc9f71e-09ea-9a4c-08fd-d5b60263f11d@kernel.dk> (raw)
In-Reply-To: <20191021083132.5351-1-jack@suse.cz>

On 10/21/19 2:37 AM, Jan Kara wrote:
> Hello,
> 
> I've been debugging for quite a long time strange issues with encrypted DVDs
> not being readable on Linux (bko#194965). In the end I've tracked down the
> problem to the fact that block device size is not updated when the media is
> inserted in case the DVD device is already open. This is IMO a bug in block
> device code as the size gets properly update in case the device has partition
> scanning enabled.  The following series fixes the problem by refreshing disk
> size on each open even for devices with partition scanning disabled.

It's really confusing to have different behavior for partition vs whole device.
This series looks good to me, the size change code is really hard to follow.

I don't see any serious objections here, I'm going to queue this up for
5.4.

-- 
Jens Axboe


  parent reply	other threads:[~2019-11-03 14:53 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-21  8:37 [PATCH 0/2] bdev: Refresh bdev size for disks without partitioning Jan Kara
2019-10-21  8:37 ` [PATCH 1/2] bdev: Factor out bdev revalidation into a common helper Jan Kara
2019-10-22  7:58   ` Damien Le Moal
2019-10-22  9:15     ` Jan Kara
2019-10-22  9:31       ` Damien Le Moal
2019-10-21  8:38 ` [PATCH 2/2] bdev: Refresh bdev size for disks without partitioning Jan Kara
2019-10-21  8:49   ` Guoqing Jiang
2019-10-21  9:12     ` Jan Kara
2019-10-21  9:27       ` Guoqing Jiang
2019-10-21  9:36         ` Johannes Thumshirn
2019-10-21  9:38           ` Guoqing Jiang
2019-10-21  9:40         ` Jan Kara
2019-10-21  9:43           ` Guoqing Jiang
2019-11-03 14:53 ` Jens Axboe [this message]
2019-11-04  8:08   ` [PATCH 0/2] " Jan Kara
2019-11-04 23:48     ` Christoph Hellwig
2019-11-05  8:59       ` Jan Kara

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=bdc9f71e-09ea-9a4c-08fd-d5b60263f11d@kernel.dk \
    --to=axboe@kernel.dk \
    --cc=jack@suse.cz \
    --cc=linux-block@vger.kernel.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 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).