1. 09 10月, 2008 4 次提交
  2. 03 7月, 2008 3 次提交
  3. 28 5月, 2008 2 次提交
  4. 07 5月, 2008 2 次提交
  5. 10 4月, 2008 1 次提交
    • F
      cfq-iosched: do not leak ioc_data across iosched switches · 4faa3c81
      Fabio Checconi 提交于
      When switching scheduler from cfq, cfq_exit_queue() does not clear
      ioc->ioc_data, leaving a dangling pointer that can deceive the following
      lookups when the iosched is switched back to cfq.  The pattern that can
      trigger that is the following:
      
          - elevator switch from cfq to something else;
          - module unloading, with elv_unregister() that calls cfq_free_io_context()
            on ioc freeing the cic (via the .trim op);
          - module gets reloaded and the elevator switches back to cfq;
          - reallocation of a cic at the same address as before (with a valid key).
      
      To fix it just assign NULL to ioc_data in __cfq_exit_single_io_context(),
      that is called from the regular exit path and from the elevator switching
      code.  The only path that frees a cic and is not covered is the error handling
      one, but cic's freed in this way are never cached in ioc_data.
      Signed-off-by: NFabio Checconi <fabio@gandalf.sssup.it>
      Signed-off-by: NJens Axboe <jens.axboe@oracle.com>
      4faa3c81
  6. 02 4月, 2008 1 次提交
  7. 19 2月, 2008 1 次提交
  8. 01 2月, 2008 1 次提交
  9. 28 1月, 2008 5 次提交
    • J
      cfq-iosched: kill some big inlines · febffd61
      Jens Axboe 提交于
      Use of inlines were a bit over the top, trim them down a bit.
      Signed-off-by: NJens Axboe <jens.axboe@oracle.com>
      febffd61
    • J
      cfq-iosched: relax IOPRIO_CLASS_IDLE restrictions · 0871714e
      Jens Axboe 提交于
      Currently you must be root to set idle io prio class on a process. This
      is due to the fact that the idle class is implemented as a true idle
      class, meaning that it will not make progress if someone else is
      requesting disk access. Unfortunately this means that it opens DOS
      opportunities by locking down file system resources, hence it is root
      only at the moment.
      
      This patch relaxes the idle class a little, by removing the truly idle
      part (which entals a grace period with associated timer). The
      modifications make the idle class as close to zero impact as can be done
      while still guarenteeing progress. This means we can relax the root only
      criteria as well.
      Signed-off-by: NJens Axboe <jens.axboe@oracle.com>
      0871714e
    • J
      block: cfq: make the io contect sharing lockless · 4ac845a2
      Jens Axboe 提交于
      The io context sharing introduced a per-ioc spinlock, that would protect
      the cfq io context lookup. That is a regression from the original, since
      we never needed any locking there because the ioc/cic were process private.
      
      The cic lookup is changed from an rbtree construct to a radix tree, which
      we can then use RCU to make the reader side lockless. That is the performance
      critical path, modifying the radix tree is only done on process creation
      (when that process first does IO, actually) and on process exit (if that
      process has done IO).
      
      As it so happens, radix trees are also much faster for this type of
      lookup where the key is a pointer. It's a very sparse tree.
      Signed-off-by: NJens Axboe <jens.axboe@oracle.com>
      4ac845a2
    • N
      io_context sharing - cfq changes · 66dac98e
      Nikanth Karthikesan 提交于
      changes in the cfq for io_context sharing
      Signed-off-by: NJens Axboe <jens.axboe@oracle.com>
      66dac98e
    • J
      ioprio: move io priority from task_struct to io_context · fd0928df
      Jens Axboe 提交于
      This is where it belongs and then it doesn't take up space for a
      process that doesn't do IO.
      Signed-off-by: NJens Axboe <jens.axboe@oracle.com>
      fd0928df
  10. 18 12月, 2007 1 次提交
  11. 07 11月, 2007 3 次提交
  12. 29 10月, 2007 2 次提交
  13. 24 7月, 2007 1 次提交
  14. 20 7月, 2007 2 次提交
    • A
      cfq: Write-only stuff in CFQ data structures · 8350163a
      Alexey Dobriyan 提交于
      There are some leftover bits from the task cooperator patch, that was
      yanked out again. While it will get reintroduced, no point in having
      this write-only stuff in the tree. So yank it.
      Signed-off-by: NJens Axboe <jens.axboe@oracle.com>
      8350163a
    • V
      cfq: async queue allocation per priority · c2dea2d1
      Vasily Tarasov 提交于
      If we have two processes with different ioprio_class, but the same
      ioprio_data, their async requests will fall into the same queue. I guess
      such behavior is not expected, because it's not right to put real-time
      requests and best-effort requests in the same queue.
      
      The attached patch fixes the problem by introducing additional *cfqq
      fields on cfqd, pointing to per-(class,priority) async queues.
      Signed-off-by: NJens Axboe <jens.axboe@oracle.com>
      c2dea2d1
  15. 18 7月, 2007 1 次提交
  16. 10 7月, 2007 1 次提交
    • J
      cfq-iosched: fix async queue behaviour · 15c31be4
      Jens Axboe 提交于
      With the cfq_queue hash removal, we inadvertently got rid of the
      async queue sharing. This was not intentional, in fact CFQ purposely
      shares the async queue per priority level to get good merging for
      async writes.
      
      So put some logic in cfq_get_queue() to track the shared queues.
      Signed-off-by: NJens Axboe <jens.axboe@oracle.com>
      15c31be4
  17. 08 5月, 2007 1 次提交
  18. 30 4月, 2007 8 次提交