The following commit has been merged in the openafs-stable-1_6_x branch:
commit ebc334a4cc020eaf4f46055155db3a4dede9bfc2
Author: Anders Kaseorg <[email protected]>
Date:   Tue Nov 12 00:23:47 2013 -0500

    Linux: afs_fill_super: Call bdi_destroy on the failure path
    
    Without this, if AFS startup failed, then trying to start AFS again
    triggers these warnings:
    
    WARNING: CPU: 3 PID: 657 at /build/buildd/linux-3.12.0/fs/sysfs/dir.c:526 
sysfs_add_one+0xa5/0xd0()
    sysfs: cannot create duplicate filename '/devices/virtual/bdi/afs'
    
    WARNING: CPU: 3 PID: 657 at /build/buildd/linux-3.12.0/lib/kobject.c:196 
kobject_add_internal+0x1f4/0x300()
    kobject_add_internal failed for afs with -EEXIST, don't try to register 
things with the same name in the same directory.
    
    and leads to general system instability.  This can be reproduced by
    starting AFS twice with an empty cache, dynroot disabled, and no
    network.
    
    Signed-off-by: Anders Kaseorg <[email protected]>
    Reviewed-on: http://gerrit.openafs.org/10448
    Tested-by: BuildBot <[email protected]>
    Reviewed-by: Marc Dionne <[email protected]>
    Reviewed-by: Derrick Brashear <[email protected]>
    (cherry picked from commit f5f53cb0a1f326ed4695621f6a5a63f798444549)
    
    Change-Id: I6dda2fb561279d445bb7fdfdb601b64b326cd4c1
    Reviewed-on: http://gerrit.openafs.org/10454
    Tested-by: BuildBot <[email protected]>
    Reviewed-by: Marc Dionne <[email protected]>
    Reviewed-by: Michael Meffie <[email protected]>
    Reviewed-by: Jeffrey Altman <[email protected]>
    Reviewed-by: Stephan Wiesand <[email protected]>

 src/afs/LINUX/osi_vfsops.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

-- 
OpenAFS Master Repository
_______________________________________________
OpenAFS-cvs mailing list
[email protected]
https://lists.openafs.org/mailman/listinfo/openafs-cvs

Reply via email to