1. 16 Oct, 2008 2 commits
    • Eric W. Biederman's avatar
      kobject: Cleanup kobject_rename and !CONFIG_SYSFS · 0b4a4fea
      Eric W. Biederman authored
      
      It finally dawned on me what the clean fix to sysfs_rename_dir
      calling kobject_set_name is.  Move the work into kobject_rename
      where it belongs.  The callers serialize us anyway so this is
      safe.
      Signed-off-by: default avatarEric W. Biederman <ebiederm@xmission.com>
      Acked-by: default avatarTejun Heo <tj@kernel.org>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
      0b4a4fea
    • Eric W. Biederman's avatar
      kobject: Fix kobject_rename and !CONFIG_SYSFS · 030c1d2b
      Eric W. Biederman authored
      
      When looking at kobject_rename I found two bugs with
      that exist when sysfs support is disabled in the kernel.
      
      kobject_rename does not change the name on the kobject when
      sysfs support is not compiled in.
      
      kobject_rename without locking attempts to check the
      validity of a rename operation, which the kobject layer
      simply does not have the infrastructure to do.
      
      This patch documents the previously unstated requirement of
      kobject_rename that is the responsibility of the caller to
      provide mutual exclusion and to be certain that the new_name
      for the kobject is valid.
      
      This patch modifies sysfs_rename_dir in !CONFIG_SYSFS case
      to call kobject_set_name to actually change the kobject_name.
      
      This patch removes the bogus and misleading check in kobject_rename
      that attempts to see if a rename is valid.  The check is bogus
      because we do not have the proper locking.  The check is misleading
      because it looks like we can and do perform checking at the kobject
      level that we don't.
      Signed-off-by: default avatarEric W. Biederman <ebiederm@xmission.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
      030c1d2b
  2. 21 Aug, 2008 1 commit
  3. 25 Jul, 2008 1 commit
  4. 22 Jul, 2008 1 commit
  5. 10 Jun, 2008 1 commit
  6. 30 Apr, 2008 2 commits
  7. 19 Apr, 2008 2 commits
  8. 04 Mar, 2008 1 commit
    • Greg Kroah-Hartman's avatar
      kobject: properly initialize ksets · a4573c48
      Greg Kroah-Hartman authored
      
      kset_initialize was calling kobject_init_internal() which didn't
      initialize the kobject as well as kobject_init() was.  So have
      kobject_init() call kobject_init_internal() and move the logic to
      initalize the kobject there.
      
      Cc: Kay Sievers <kay.sievers@vrfy.org>
      Cc: Hannes Reinecke <hare@suse.de>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
      a4573c48
  9. 02 Feb, 2008 1 commit
  10. 25 Jan, 2008 1 commit
  11. 24 Jan, 2008 27 commits