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

Kay Sievers
2009-05-23T21:33:19Z

On Sat, May 23, 2009 at 22:13, Eric W. Biederman <ebiederm@xmission.com> wrote:
> From: Eric W. Biederman <ebiederm@xmission.com>
>
> 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@aristanetworks.com>

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

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

Thanks,
Kay