1. 30 6月, 2010 4 次提交
    • C
      splice: check f_mode for seekable file · 19c9a49b
      Changli Gao 提交于
      check f_mode for seekable file
      
      As a seekable file is allowed without a llseek function, so the old way isn't
      work any more.
      Signed-off-by: NChangli Gao <xiaosuo@gmail.com>
      Signed-off-by: NMiklos Szeredi <mszeredi@suse.cz>
      ----
       fs/splice.c |    6 ++----
       1 file changed, 2 insertions(+), 4 deletions(-)
      Signed-off-by: NJens Axboe <jaxboe@fusionio.com>
      19c9a49b
    • C
      splice: direct_splice_actor() should not use pos in sd · 2cb4b05e
      Changli Gao 提交于
      direct_splice_actor() shouldn't use sd->pos, as sd->pos is for file reading,
      file->f_pos should be used instead.
      Signed-off-by: NChangli Gao <xiaosuo@gmail.com>
      Signed-off-by: NMiklos Szeredi <mszeredi@suse.cz>
      ----
       fs/splice.c |    3 ++-
       1 file changed, 2 insertions(+), 1 deletion(-)
      Signed-off-by: NJens Axboe <jaxboe@fusionio.com>
      2cb4b05e
    • L
      Merge branch 'for-linus' of git://git.kernel.dk/linux-2.6-block · 984bc960
      Linus Torvalds 提交于
      * 'for-linus' of git://git.kernel.dk/linux-2.6-block:
        block: Don't count_vm_events for discard bio in submit_bio.
        cfq: fix recursive call in cfq_blkiocg_update_completion_stats()
        cfq-iosched: Fixed boot warning with BLK_CGROUP=y and CFQ_GROUP_IOSCHED=n
        cfq: Don't allow queue merges for queues that have no process references
        block: fix DISCARD_BARRIER requests
        cciss: set SCSI max cmd len to 16, as default is wrong
        cpqarray: fix two more wrong section type
        cpqarray: fix wrong __init type on pci probe function
        drbd: Fixed a race between disk-attach and unexpected state changes
        writeback: fix pin_sb_for_writeback
        writeback: add missing requeue_io in writeback_inodes_wb
        writeback: simplify and split bdi_start_writeback
        writeback: simplify wakeup_flusher_threads
        writeback: fix writeback_inodes_wb from writeback_inodes_sb
        writeback: enforce s_umount locking in writeback_inodes_sb
        writeback: queue work on stack in writeback_inodes_sb
        writeback: fix writeback completion notifications
      984bc960
    • N
      fs: fix superblock iteration race · 57439f87
      npiggin@suse.de 提交于
      list_for_each_entry_safe is not suitable to protect against concurrent
      modification of the list. 6754af64 introduced a race in sb walking.
      
      list_for_each_entry can use the trick of pinning the current entry in
      the list before we drop and retake the lock because it subsequently
      follows cur->next. However list_for_each_entry_safe saves n=cur->next
      for following before entering the loop body, so when the lock is
      dropped, n may be deleted.
      Signed-off-by: NNick Piggin <npiggin@suse.de>
      Cc: Christoph Hellwig <hch@infradead.org>
      Cc: John Stultz <johnstul@us.ibm.com>
      Cc: Frank Mayhar <fmayhar@google.com>
      Cc: Al Viro <viro@zeniv.linux.org.uk>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      57439f87
  2. 29 6月, 2010 7 次提交
  3. 28 6月, 2010 9 次提交
  4. 27 6月, 2010 20 次提交