New: flood of "don't try to register things with the same name in the same directory." on upgrade to 2.6.32
Subsystems (2)
Quoted 36 lines · On Thu, 2009-12-24 at 02:44 +0000, bugzilla-daemon-590EEB7GvNiWaY/ihj7yzEB+6BGk…
http://bugzilla.kernel.org/show_bug.cgi?id=14868
Summary: flood of "don't try to register things with the same
name in the same directory." on upgrade to 2.6.32
Product: File System
Version: 2.5
Kernel Version: 2.6.32
Platform: All
OS/Version: Linux
Tree: Mainline
Status: NEW
Severity: normal
Priority: P1
Component: NFS
AssignedTo: [email protected]
ReportedBy: [email protected]
Regression: NoWas running 2.6.31 vanilla on Fedora 10, upgraded to vanilla 2.6.32, dmesg started getting flooded with messages of the form [see attachment 1]:
------------[ cut here ]------------ WARNING: at fs/sysfs/dir.c:491 sysfs_add_one+0x100/0x117() Hardware name: sysfs: cannot create duplicate filename '/devices/virtual/bdi/0:32' Modules linked in: autofs4 coretemp hwmon nfs lockd nfs_acl auth_rpcgss sunrpccachefiles fscache ipv6
cpufreq_ondemandacpi_cpufreqfreq_tablekvm_intelkvmsnd_hda_intelsnd_hda_codecsnd_seq_dummysnd_seq_osssnd_usb_audiosnd_seq_midi_eventsnd_seqsnd_usb_libuvcvideo ppdevfirewire_ohcifirewire_coresnd_pcm_osssnd_mixer_osscrc_itu_tpcspkrsnd_rawmidivideodevv4l1_compatv4l2_compat_ioctl32i2c_i801snd_pcmi2c_coresnd_seq_deviceusb_storageiTCO_wdtiTCO_vendor_supportsnd_hwdepsnd_timerparport_pcsnd parport e1000ei82975x_edacedac_coresoundcoresnd_page_allocraid1 [last
unloaded:scsi_wait_scan]
Pid: 20581, comm: mount.nfs Tainted: G W 2.6.32-fun #1
...
Quoted 8 lines
---[ end trace b4d582dc9db911d1 ]---
kobject_add_internalfailed for 0:32 with-EEXIST, don't try to register things with the same name in the same directory.
Pid: 20581, comm: mount.nfs Tainted: G W 2.6.32-fun #1
...The system is indeed using autofs, so I'd blame NFS-mounts from FreeBSD for this, but it wasn't cropping up in 2.6.31.
It appears to be due to the per-bdi thread changes in 2.6.32. The support for anonymous devices has a problem in that sysfs and debugfs directories and files can be kept open by other processes even after the device number gets deallocated.
Quoted 2 lines
I've also attached the .config for the 2.6.31 and 2.6.32 kernels, in case it's something stupid I missed.
Are you perhaps running some daemon or process that is accessing /sys/devices/virtual/bdi/0:32 and keeping it open beyond the lifetime of the NFS mount?
Trond