1. 01 Oct, 2006 28 commits
  2. 30 Sep, 2006 12 commits
    • Linus Torvalds's avatar
      Merge branch 'block' of git://brick.kernel.dk/data/git/linux-2.6-block · cfae3580
      Linus Torvalds authored
      * 'block' of git://brick.kernel.dk/data/git/linux-2.6-block:
        [PATCH] Only enable CONFIG_BLOCK option for embedded
      cfae3580
    • Jens Axboe's avatar
      [PATCH] Only enable CONFIG_BLOCK option for embedded · 51d7513a
      Jens Axboe authored
      It's too easy for people to shoot themselves in the foot, and it
      only makes sense for embedded folks anyway.
      Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
      51d7513a
    • Linus Torvalds's avatar
      Merge branch 'block' of git://brick.kernel.dk/data/git/linux-2.6-block · 56f29d7f
      Linus Torvalds authored
      * 'block' of git://brick.kernel.dk/data/git/linux-2.6-block: (67 commits)
        [PATCH] blk_queue_start_tag() shared map race fix
        [PATCH] Update axboe@suse.de email address
        [PATCH] fix creating zero sized bio mempools in low memory system
        [PATCH] CONFIG_BLOCK: blk_congestion_wait() fix
        [PATCH] CONFIG_BLOCK internal.h cleanups
        [PATCH] BLOCK: Make USB storage depend on SCSI rather than selecting it [try #6]
        [PATCH] BLOCK: Make it possible to disable the block layer [try #6]
        [PATCH] BLOCK: Remove no-longer necessary linux/buffer_head.h inclusions [try #6]
        [PATCH] BLOCK: Remove no-longer necessary linux/mpage.h inclusions [try #6]
        [PATCH] BLOCK: Move the msdos device ioctl compat stuff to the msdos driver [try #6]
        [PATCH] BLOCK: Move the Ext3 device ioctl compat stuff to the Ext3 driver [try #6]
        [PATCH] BLOCK: Move the Ext2 device ioctl compat stuff to the Ext2 driver [try #6]
        [PATCH] BLOCK: Move the ReiserFS device ioctl compat stuff to the ReiserFS driver [try #6]
        [PATCH] BLOCK: Move common FS-specific ioctls to linux/fs.h [try #6]
        [PATCH] BLOCK: Move the loop device ioctl compat stuff to the loop driver [try #6]
        [PATCH] BLOCK: Move __invalidate_device() to block_dev.c [try #6]
        [PATCH] BLOCK: Dissociate generic_writepages() from mpage stuff [try #6]
        [PATCH] BLOCK: Remove dependence on existence of blockdev_superblock [try #6]
        [PATCH] BLOCK: Move extern declarations out of fs/*.c into header files [try #6]
        [PATCH] BLOCK: Don't call block_sync_page() from AFS [try #6]
        ...
      56f29d7f
    • Jens Axboe's avatar
      [PATCH] blk_queue_start_tag() shared map race fix · 059af497
      Jens Axboe authored
      If we share the tag map between two or more queues, then we cannot
      use __set_bit() to set the bit. In fact we need to make sure we
      atomically acquire this tag, so loop using test_and_set_bit() to
      protect from that.
      
      Noticed by Mike Christie <michaelc@cs.wisc.edu>
      Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
      059af497
    • Jens Axboe's avatar
      [PATCH] Update axboe@suse.de email address · 0fe23479
      Jens Axboe authored
      As people often look for the copyright in files to see who to mail,
      update the link to a neutral one.
      Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
      0fe23479
    • Milan Broz's avatar
      [PATCH] fix creating zero sized bio mempools in low memory system · 50be3455
      Milan Broz authored
      In the very low memory systems is in the init_bio call
      scale parameter set to zero and it leads to creating
      zero sized mempool.
      
      This patch prevents pool_entries parameter become zero,
      so the created pool have at least 1 entry.
      
      Mempool with 0 entries lead to incorrect behaviour
      of mempool_free. (Alloc requests are not waken up
      and system stalls in mempool_alloc->ioschedule).
      Signed-off-by: default avatarMilan Broz <mbroz@redhat.com>
      Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
      50be3455
    • Andrew Morton's avatar
      [PATCH] CONFIG_BLOCK: blk_congestion_wait() fix · bcfd8d36
      Andrew Morton authored
      Don't just do nothing: it'll cause busywaits all over writeback and page
      reclaim.
      
      For now, take a fixed-length nap.  Will improve when NFS starts waking up
      throttled processes.
      Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
      Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
      bcfd8d36
    • Andrew Morton's avatar
      [PATCH] CONFIG_BLOCK internal.h cleanups · 5e6d12b2
      Andrew Morton authored
      - forward declare struct superblock
      - use inlines, not macros
      Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
      Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
      5e6d12b2
    • David Howells's avatar
      [PATCH] BLOCK: Make USB storage depend on SCSI rather than selecting it [try #6] · 65934a9a
      David Howells authored
      This makes CONFIG_USB_STORAGE depend on CONFIG_SCSI rather than selecting it,
      as selecting it makes CONFIG_USB_STORAGE override the dependencies of SCSI,
      causing it to turn on even if they aren't all met.
      Signed-Off-By: default avatarDavid Howells <dhowells@redhat.com>
      Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
      65934a9a
    • David Howells's avatar
      [PATCH] BLOCK: Make it possible to disable the block layer [try #6] · 9361401e
      David Howells authored
      Make it possible to disable the block layer.  Not all embedded devices require
      it, some can make do with just JFFS2, NFS, ramfs, etc - none of which require
      the block layer to be present.
      
      This patch does the following:
      
       (*) Introduces CONFIG_BLOCK to disable the block layer, buffering and blockdev
           support.
      
       (*) Adds dependencies on CONFIG_BLOCK to any configuration item that controls
           an item that uses the block layer.  This includes:
      
           (*) Block I/O tracing.
      
           (*) Disk partition code.
      
           (*) All filesystems that are block based, eg: Ext3, ReiserFS, ISOFS.
      
           (*) The SCSI layer.  As far as I can tell, even SCSI chardevs use the
           	 block layer to do scheduling.  Some drivers that use SCSI facilities -
           	 such as USB storage - end up disabled indirectly from this.
      
           (*) Various block-based device drivers, such as IDE and the old CDROM
           	 drivers.
      
           (*) MTD blockdev handling and FTL.
      
           (*) JFFS - which uses set_bdev_super(), something it could avoid doing by
           	 taking a leaf out of JFFS2's book.
      
       (*) Makes most of the contents of linux/blkdev.h, linux/buffer_head.h and
           linux/elevator.h contingent on CONFIG_BLOCK being set.  sector_div() is,
           however, still used in places, and so is still available.
      
       (*) Also made contingent are the contents of linux/mpage.h, linux/genhd.h and
           parts of linux/fs.h.
      
       (*) Makes a number of files in fs/ contingent on CONFIG_BLOCK.
      
       (*) Makes mm/bounce.c (bounce buffering) contingent on CONFIG_BLOCK.
      
       (*) set_page_dirty() doesn't call __set_page_dirty_buffers() if CONFIG_BLOCK
           is not enabled.
      
       (*) fs/no-block.c is created to hold out-of-line stubs and things that are
           required when CONFIG_BLOCK is not set:
      
           (*) Default blockdev file operations (to give error ENODEV on opening).
      
       (*) Makes some /proc changes:
      
           (*) /proc/devices does not list any blockdevs.
      
           (*) /proc/diskstats and /proc/partitions are contingent on CONFIG_BLOCK.
      
       (*) Makes some compat ioctl handling contingent on CONFIG_BLOCK.
      
       (*) If CONFIG_BLOCK is not defined, makes sys_quotactl() return -ENODEV if
           given command other than Q_SYNC or if a special device is specified.
      
       (*) In init/do_mounts.c, no reference is made to the blockdev routines if
           CONFIG_BLOCK is not defined.  This does not prohibit NFS roots or JFFS2.
      
       (*) The bdflush, ioprio_set and ioprio_get syscalls can now be absent (return
           error ENOSYS by way of cond_syscall if so).
      
       (*) The seclvl_bd_claim() and seclvl_bd_release() security calls do nothing if
           CONFIG_BLOCK is not set, since they can't then happen.
      Signed-Off-By: default avatarDavid Howells <dhowells@redhat.com>
      Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
      9361401e
    • David Howells's avatar
      [PATCH] BLOCK: Remove no-longer necessary linux/buffer_head.h inclusions [try #6] · d366e40a
      David Howells authored
      Remove inclusions of linux/buffer_head.h that are no longer necessary due to the
      transfer of a number of things out of there.
      Signed-Off-By: default avatarDavid Howells <dhowells@redhat.com>
      Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
      d366e40a
    • David Howells's avatar
      [PATCH] BLOCK: Remove no-longer necessary linux/mpage.h inclusions [try #6] · 4cb50dc2
      David Howells authored
      Remove inclusions of linux/mpage.h that are no longer necessary due to the
      transfer of generic_writepages().
      Signed-Off-By: default avatarDavid Howells <dhowells@redhat.com>
      Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
      4cb50dc2