[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20081105090449.GA9269@gollum.tnic>
Date: Wed, 5 Nov 2008 10:04:50 +0100
From: Borislav Petkov <petkovbb@...glemail.com>
To: Tejun Heo <tj@...nel.org>
Cc: axboe@...nel.dk, bzolnier@...il.com, linux-ide@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: Subject: [PATCH] block: fix __blkdev_get() for removable
devices
On Tue, Nov 04, 2008 at 01:16:07PM +0900, Tejun Heo wrote:
> Commit 0762b8bde9729f10f8e6249809660ff2ec3ad735 moved disk_get_part()
> in front of recursive get on the whole disk, which caused removable
> devices to try disk_get_part() before rescanning after a new media is
> inserted, which might fail legit open attempts or give the old
> partition.
>
> This patch fixes the problem by moving disk_get_part() after
> __blkdev_get() on the whole disk.
>
> This problem was spotted by Borislav Petkov.
>
> Signed-off-by: Tejun Heo <tj@...nel.org>
> Cc: <Borislav Petkov> petkovbb@...glemail.com
> ---
> Borislav, can you please verify this patch? Thanks.
Yep, it works. Thanks.
Tested-by: Borislav Petkov <petkovbb@...il.com>
--
Regards/Gruss,
Boris.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists