1. 24 Sep, 2010 4 commits
  2. 23 Sep, 2010 31 commits
  3. 22 Sep, 2010 5 commits
    • Linus Torvalds's avatar
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc-2.6 · c79bd892
      Linus Torvalds authored
      * git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc-2.6:
        sparc: Prevent no-handler signal syscall restart recursion.
        sparc: Don't mask signal when we can't setup signal frame.
        sparc64: Fix race in signal instruction flushing.
        sparc64: Support RAW perf events.
      c79bd892
    • Al Viro's avatar
      powerpc: fix double syscall restarts · 9a81c16b
      Al Viro authored
      Make sigreturn zero regs->trap, make do_signal() do the same on all
      paths.  As it is, signal interrupting e.g. read() from fd 512 (==
      ERESTARTSYS) with another signal getting unblocked when the first
      handler finishes will lead to restart one insn earlier than it ought
      to.  Same for multiple signals with in-kernel handlers interrupting
      that sucker at the same time.  Same for multiple signals of any kind
      interrupting that sucker on 64bit...
      Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
      Acked-by: default avatarPaul Mackerras <paulus@samba.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      9a81c16b
    • Linus Torvalds's avatar
      Merge branch 'for-linus' of git://git.kernel.dk/linux-2.6-block · b68e9d45
      Linus Torvalds authored
      * 'for-linus' of git://git.kernel.dk/linux-2.6-block:
        bdi: Fix warnings in __mark_inode_dirty for /dev/zero and friends
        char: Mark /dev/zero and /dev/kmem as not capable of writeback
        bdi: Initialize noop_backing_dev_info properly
        cfq-iosched: fix a kernel OOPs when usb key is inserted
        block: fix blk_rq_map_kern bio direction flag
        cciss: freeing uninitialized data on error path
      b68e9d45
    • Jan Kara's avatar
      bdi: Fix warnings in __mark_inode_dirty for /dev/zero and friends · 692ebd17
      Jan Kara authored
      Inodes of devices such as /dev/zero can get dirty for example via
      utime(2) syscall or due to atime update. Backing device of such inodes
      (zero_bdi, etc.) is however unable to handle dirty inodes and thus
      __mark_inode_dirty complains.  In fact, inode should be rather dirtied
      against backing device of the filesystem holding it. This is generally a
      good rule except for filesystems such as 'bdev' or 'mtd_inodefs'. Inodes
      in these pseudofilesystems are referenced from ordinary filesystem
      inodes and carry mapping with real data of the device. Thus for these
      inodes we have to use inode->i_mapping->backing_dev_info as we did so
      far. We distinguish these filesystems by checking whether sb->s_bdi
      points to a non-trivial backing device or not.
      
      Example: Assume we have an ext3 filesystem on /dev/sda1 mounted on /.
      There's a device inode A described by a path "/dev/sdb" on this
      filesystem. This inode will be dirtied against backing device "8:0"
      after this patch. bdev filesystem contains block device inode B coupled
      with our inode A. When someone modifies a page of /dev/sdb, it's B that
      gets dirtied and the dirtying happens against the backing device "8:16".
      Thus both inodes get filed to a correct bdi list.
      
      Cc: stable@kernel.org
      Signed-off-by: default avatarJan Kara <jack@suse.cz>
      Signed-off-by: default avatarJens Axboe <jaxboe@fusionio.com>
      692ebd17
    • Jan Kara's avatar
      char: Mark /dev/zero and /dev/kmem as not capable of writeback · 371d217e
      Jan Kara authored
      These devices don't do any writeback but their device inodes still can get
      dirty so mark bdi appropriately so that bdi code does the right thing and files
      inodes to lists of bdi carrying the device inodes.
      
      Cc: stable@kernel.org
      Signed-off-by: default avatarJan Kara <jack@suse.cz>
      Signed-off-by: default avatarJens Axboe <jaxboe@fusionio.com>
      371d217e