1. 13 Nov, 2010 3 commits
    • Tejun Heo's avatar
      block: simplify holder symlink handling · e09b457b
      Tejun Heo authored
      Code to manage symlinks in /sys/block/*/{holders|slaves} are overly
      complex with multiple holder considerations, redundant extra
      references to all involved kobjects, unused generic kobject holder
      support and unnecessary mixup with bd_claim/release functionalities.
      
      Strip it down to what's necessary (single gendisk holder) and make it
      use a separate interface.  This is a step for cleaning up
      bd_claim/release.  This patch makes dm-table slightly more complex but
      it will be simplified again with further changes.
      Signed-off-by: default avatarTejun Heo <tj@kernel.org>
      Acked-by: default avatarNeil Brown <neilb@suse.de>
      Acked-by: default avatarMike Snitzer <snitzer@redhat.com>
      Cc: dm-devel@redhat.com
      e09b457b
    • Tejun Heo's avatar
      btrfs: close_bdev_exclusive() should use the same @flags as the matching open_bdev_exclusive() · 37004c42
      Tejun Heo authored
      In the failure path of __btrfs_open_devices(), close_bdev_exclusive()
      is called with @flags which doesn't match the one used during
      open_bdev_exclusive().  Fix it.
      Signed-off-by: default avatarTejun Heo <tj@kernel.org>
      Cc: Chris Mason <chris.mason@oracle.com>
      37004c42
    • Tejun Heo's avatar
      mtd: fix bdev exclusive open bugs in block2mtd::add_device() · 731edacb
      Tejun Heo authored
      There are two bdev exclusive open bugs.
      
      * open_bdev_exclusive() must not be called with NULL holder.  Use dev
        as the holder.
      
      * open_by_devnum() doesn't open the bdev exclusively but
        block2mtd_free_device() always assumes it.  Explicitly claim the
        bdev.
      
      The latter is rather clumsy but will be simplified with future
      blkdev_get/put() cleanups.
      
      - Updated to use local variable @mode to cache FMODE_* masks as
        suggested by Artem Bityutskiy.
      Signed-off-by: default avatarTejun Heo <tj@kernel.org>
      Cc: linux-mtd@lists.infradead.org
      Cc: Artem Bityutskiy <dedekind1@gmail.com>
      731edacb
  2. 09 Nov, 2010 5 commits
  3. 08 Nov, 2010 17 commits
  4. 06 Nov, 2010 7 commits
  5. 05 Nov, 2010 8 commits