linux_old1/drivers/s390
Benjamin Poirier aaf9522d62 netiucv: Hold rtnl between name allocation and device registration.
fixes a race condition between concurrent initializations of netiucv devices
that try to use the same name.

sysfs: cannot create duplicate filename '/devices/iucv/netiucv2'
[...]
Call Trace:
([<00000000002edea4>] sysfs_add_one+0xb0/0xdc)
 [<00000000002eecd4>] create_dir+0x80/0xfc
 [<00000000002eee38>] sysfs_create_dir+0xe8/0x118
 [<00000000003835a8>] kobject_add_internal+0x120/0x2d0
 [<00000000003839d6>] kobject_add+0x62/0x9c
 [<00000000003d9564>] device_add+0xcc/0x510
 [<000003e00212c7b4>] netiucv_register_device+0xc0/0x1ec [netiucv]

Signed-off-by: Benjamin Poirier <bpoirier@suse.de>
Tested-by: Ursula Braun <braunu@de.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2013-06-13 17:41:18 -07:00
..
block s390/dasd: fix handling of gone paths 2013-05-31 17:23:49 +02:00
char s390/memory hotplug,sclp: get rid of per memory increment usecount 2013-05-02 15:50:28 +02:00
cio s390/cio: add channel ID sysfs attribute 2013-05-15 16:47:39 +02:00
crypto s390/zcrypt: ap bus rescan problem when toggle crypto adapters on/off 2013-05-02 17:10:20 +02:00
kvm Merge tag 'kvm-3.10-1' of git://git.kernel.org/pub/scm/virt/kvm/kvm 2013-05-05 14:47:31 -07:00
net netiucv: Hold rtnl between name allocation and device registration. 2013-06-13 17:41:18 -07:00
scsi s390/time: rename tod clock access functions 2013-02-14 15:55:10 +01:00
Makefile [S390] split/move machine check handler code 2009-03-26 15:24:10 +01:00