[lkml]   [2011]   [May]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [57/71] block: rescan partitions on invalidated devices on -ENOMEDIA too
Hello, Greg.

On Thu, May 19, 2011 at 8:05 PM, Greg KH <> wrote:
> 2.6.38-stable review patch.  If anyone has any objections, please let us know.
> ------------------
> From: Tejun Heo <>
> commit 02e352287a40bd456eb78df705bf888bc3161d3f upstream.
> __blkdev_get() doesn't rescan partitions if disk->fops->open() fails,
> which leads to ghost partition devices lingering after medimum removal
> is known to both the kernel and userland.  The behavior also creates a
> subtle inconsistency where O_NONBLOCK open, which doesn't fail even if
> there's no medium, clears the ghots partitions, which is exploited to
> work around the problem from userland.
> Fix it by updating __blkdev_get() to issue partition rescan after
> -ENOMEDIA too.
> This was reported in the following bz.
> Stable: 2.6.38

Can you please hold this for a while? It causes an extra warning
message to be printed during device detection. It isn't harmful but
still. I'll soon send a patch to resolve the issue and it would be
better for them to go together.

Thank you.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2011-05-19 20:15    [W:0.283 / U:1.736 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site