From: Jens Axboe <jaxboe@fusionio.com>
To: Tejun Heo <tj@kernel.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>,
Tony Luck <tony.luck@gmail.com>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: New boot time message: detected capacity change
Date: Thu, 19 May 2011 09:27:35 +0200 [thread overview]
Message-ID: <4DD4C667.7030507@fusionio.com> (raw)
In-Reply-To: <20110519060100.GB2904@mtj.dyndns.org>
On 2011-05-19 08:01, Tejun Heo wrote:
> Hello, again.
>
> On Thu, May 19, 2011 at 07:29:03AM +0200, Tejun Heo wrote:
>> The commit message is incomplete rather than misleading. The problem
>> has been there for a long time but hasn't affected cdrom so not many
>> people have noticed it. The changes to media revalidation exposed the
>> bug for cdrom too, so it became a regression for 2.6.38. Please refer
>> to the following thread.
>>
>> https://lkml.org/lkml/2011/3/31/436
>>
>> As the root cause was the same as the 2009 bug, I just referenced that
>> one. I should have included the link to the newer thread or explained
>> how it affected recent conversion from ->media_changed to
>> ->check_events. My bad.
>
> I was a bit confused here, so there were two separate problems. One
> affected sr, which was fixed by bf2253a6f0 and the other affecting
> partition scan on sd fixed by 02e352287a. The two were mixed in my
> head, and I explained the wrong one.
>
> The cdrom problem was a plain kernel regression. The latter (the one
> being shouted at in this thread) is slightly more complex. Due to the
> way devices were polled for media change from userland, the problem
> wasn't noticeable. The kernel misbehaved but userland polling masked
> it. 2.6.38 added in-kernel polling and the userland workaround no
> longer applied and the problem became visible - similar story with the
> cdrom problem but involves userland behavior change too.
>
> Both were very simliar in the cause too. cdrom was unnecessarily
> skipping check_disk_change() while the block layer was unnecessarily
> skipping partition check.
>
> Anyways, I'll go to my office and look into the warning message, but
> please revert 02e352287a if necessary. We can do that with -stable
> later.
It's too late at this point really, since 2.6.39 is tagged and done. The
capacity message should be purely harmless, even if it does look
somewhat odd. The placement is fairly logical, so should not cause too
many confused users.
--
Jens Axboe
next prev parent reply other threads:[~2011-05-19 7:27 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-18 20:32 New boot time message: detected capacity change Tony Luck
2011-05-18 20:50 ` Linus Torvalds
2011-05-19 5:29 ` Tejun Heo
2011-05-19 6:01 ` Tejun Heo
2011-05-19 7:27 ` Jens Axboe [this message]
2011-05-19 7:25 ` Jens Axboe
2011-05-19 9:30 ` Tejun Heo
2011-05-19 17:39 ` Tony Luck
2011-05-23 11:24 ` [PATCH] block: move bd_set_size() above rescan_partitions() in __blkdev_get() Tejun Heo
2011-05-23 15:51 ` Linus Torvalds
2011-05-23 16:31 ` 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=4DD4C667.7030507@fusionio.com \
--to=jaxboe@fusionio.com \
--cc=linux-kernel@vger.kernel.org \
--cc=tj@kernel.org \
--cc=tony.luck@gmail.com \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox