Re: [RFC] block: fix __blkdev_get and add_disk race condition

From: Tejun Heo
Date: Mon Feb 20 2012 - 20:15:59 EST


Hello,

Nice catch.

On Sat, Feb 18, 2012 at 06:26:13PM +0100, Stanislaw Gruszka wrote:
> As drawback, I do not teardown on sysfs file create error, because I do
> not know how to nullify disk->ev (since it can be used).

add_disk() error handling is mostly non-existent and the error
behavior should be acceptable (no sysfs files created but everything
else behaves the same).

> Signed-off-by: Stanislaw Gruszka <sgruszka@xxxxxxxxxx>

Acked-by: Tejun Heo <tj@xxxxxxxxxx>

Thank you.

--
tejun
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/