driver-core: skip uevent generation when nobody is listening
authorKay Sievers <kay.sievers@vrfy.org>
Mon, 5 Dec 2011 18:12:47 +0000 (19:12 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sat, 10 Dec 2011 00:23:50 +0000 (16:23 -0800)
commit74099b18b8db0670484e0caeb3425fb29ff3144e
treea50f4085ab7e8d04936a886c7a4f6a535a32ed5d
parentcf6a2eacbcb2593b5b91d0817915c4f0464bb534
driver-core: skip uevent generation when nobody is listening

Most network namespaces unlikely have listeners to uevents, and should
benefit from skipping all the string copies.

Cc: Eric Biederman <ebiederm@xmission.com>
Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
lib/kobject_uevent.c