1. 31 Jan, 2012 1 commit
  2. 27 Jan, 2012 12 commits
  3. 26 Jan, 2012 1 commit
    • Ludwig Nussel's avatar
      debugfs: add mode, uid and gid options · d6e48686
      Ludwig Nussel authored
      Cautious admins may want to restrict access to debugfs. Currently a
      manual chown/chmod e.g. in an init script is needed to achieve that.
      Distributions that want to make the mount options configurable need
      to add extra config files. By allowing to set the root inode's uid,
      gid and mode via mount options no such hacks are needed anymore.
      Instead configuration becomes straight forward via fstab.
      Signed-off-by: default avatarLudwig Nussel <ludwig.nussel@suse.de>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
      d6e48686
  4. 25 Jan, 2012 5 commits
    • Alan Stern's avatar
      Eliminate get_driver() and put_driver() · 9875bb48
      Alan Stern authored
      Now that there are no users of get_driver() or put_driver(), this
      patch (as1513) removes those routines completely.
      Signed-off-by: default avatarAlan Stern <stern@rowland.harvard.edu>
      CC: Dmitry Torokhov <dmitry.torokhov@gmail.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
      9875bb48
    • Alan Stern's avatar
      Remove useless get_driver()/put_driver() calls · f3ff9247
      Alan Stern authored
      As part of the removal of get_driver()/put_driver(), this patch
      (as1512) gets rid of various useless and unnecessary calls in several
      drivers.  In some cases it may be desirable to pin the driver by
      calling try_module_get(), but that can be done later.
      Signed-off-by: default avatarAlan Stern <stern@rowland.harvard.edu>
      CC: "David S. Miller" <davem@davemloft.net>
      CC: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
      CC: Michael Buesch <m@bues.ch>
      CC: Joerg Roedel <joerg.roedel@amd.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
      f3ff9247
    • Sebastian Ott's avatar
      cio: remove {get,put}_driver · 9f30ea95
      Sebastian Ott authored
      Remove useless {get,put}_driver - the caller of the functions
      has to ensure valid driver pointers.
      Signed-off-by: default avatarSebastian Ott <sebott@linux.vnet.ibm.com>
      Signed-off-by: default avatarAlan Stern <stern@rowland.harvard.edu>
      CC: Martin Schwidefsky <schwidefsky@de.ibm.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
      9f30ea95
    • Alan Stern's avatar
      Dynamic ID addition doesn't need get_driver() · cef9bc56
      Alan Stern authored
      As part of the removal of get_driver()/put_driver(), this patch
      (as1511) changes all the places that add dynamic IDs for drivers.
      Since these additions are done by writing to the drivers' sysfs
      attribute files, and the attributes are removed when the drivers are
      unregistered, there is no reason to take an extra reference to the
      drivers.
      
      The one exception is the pci-stub driver, which calls pci_add_dynid()
      as part of its registration.  But again, there's no reason to take an
      extra reference here, because the driver can't be unloaded while it is
      being registered.
      Signed-off-by: default avatarAlan Stern <stern@rowland.harvard.edu>
      CC: Dmitry Torokhov <dmitry.torokhov@gmail.com>
      CC: Jiri Kosina <jkosina@suse.cz>
      CC: Jesse Barnes <jbarnes@virtuousgeek.org>
      CC: Dominik Brodowski <linux@dominikbrodowski.net>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
      cef9bc56
    • Alan Stern's avatar
      Driver core: driver_find() drops reference before returning · fde25a9b
      Alan Stern authored
      As part of the removal of get_driver()/put_driver(), this patch
      (as1510) changes driver_find(); it now drops the reference it acquires
      before returning.  The patch also adjusts all the callers of
      driver_find() to remove the now unnecessary calls to put_driver().
      
      In addition, the patch adds a warning to driver_find(): Callers must
      make sure the driver they are searching for does not get unloaded
      while they are using it.  This has always been the case; driver_find()
      has never prevented a driver from being unregistered or unloaded.
      Hence the patch will not introduce any new bugs.  The existing callers
      all seem to be okay in this respect, however I don't understand the
      video drivers well enough to be certain about them.
      Signed-off-by: default avatarAlan Stern <stern@rowland.harvard.edu>
      CC: Dmitry Torokhov <dmitry.torokhov@gmail.com>
      CC: Kyungmin Park <kyungmin.park@samsung.com>
      CC: Andy Walls <awalls@md.metrocast.net>
      CC: Martin Schwidefsky <schwidefsky@de.ibm.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
      fde25a9b
  5. 24 Jan, 2012 21 commits