Re: [PATCH 22/20] sysfs: Make sysfs_rename_link atomic

From: Kay Sievers
Date: Sat May 23 2009 - 17:33:21 EST


On Sat, May 23, 2009 at 22:13, Eric W. Biederman <ebiederm@xxxxxxxxxxxx> wrote:
> From: Eric W. Biederman <ebiederm@xxxxxxxxxxxx>
>
> Use the existing sysfs_rename to make sysfs_rename_link an atomic
> operation that does less work. ÂWhile I am at add additional sanity
> checking to ensure it is a symlink I am renaming.
>
> Signed-off-by: Eric W. Biederman <ebiederm@xxxxxxxxxxxxxxxxxx>

Looks great, and so much better than the remove and re-create thing.

Acked-by: Kay Sievers <kay.sievers@xxxxxxxx>

Thanks,
Kay
--
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/