[lkml]   [2008]   [Nov]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: 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 <>
> Cc: <Borislav Petkov>
> ---
> Borislav, can you please verify this patch? Thanks.

Yep, it works. Thanks.

Tested-by: Borislav Petkov <>


 \ /
  Last update: 2008-11-05 10:07    [W:0.072 / U:0.068 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site