1. 18 9月, 2014 9 次提交
  2. 17 9月, 2014 2 次提交
  3. 16 9月, 2014 5 次提交
  4. 14 9月, 2014 3 次提交
  5. 12 9月, 2014 8 次提交
  6. 11 9月, 2014 10 次提交
  7. 10 9月, 2014 3 次提交
    • A
      dm cache: fix race causing dirty blocks to be marked as clean · 40aa978e
      Anssi Hannula 提交于
      When a writeback or a promotion of a block is completed, the cell of
      that block is removed from the prison, the block is marked as clean, and
      the clear_dirty() callback of the cache policy is called.
      
      Unfortunately, performing those actions in this order allows an incoming
      new write bio for that block to come in before clearing the dirty status
      is completed and therefore possibly causing one of these two scenarios:
      
      Scenario A:
      
      Thread 1                      Thread 2
      cell_defer()                  .
      - cell removed from prison    .
      - detained bios queued        .
      .                             incoming write bio
      .                             remapped to cache
      .                             set_dirty() called,
      .                               but block already dirty
      .                               => it does nothing
      clear_dirty()                 .
      - block marked clean          .
      - policy clear_dirty() called .
      
      Result: Block is marked clean even though it is actually dirty. No
      writeback will occur.
      
      Scenario B:
      
      Thread 1                      Thread 2
      cell_defer()                  .
      - cell removed from prison    .
      - detained bios queued        .
      clear_dirty()                 .
      - block marked clean          .
      .                             incoming write bio
      .                             remapped to cache
      .                             set_dirty() called
      .                             - block marked dirty
      .                             - policy set_dirty() called
      - policy clear_dirty() called .
      
      Result: Block is properly marked as dirty, but policy thinks it is clean
      and therefore never asks us to writeback it.
      This case is visible in "dmsetup status" dirty block count (which
      normally decreases to 0 on a quiet device).
      
      Fix these issues by calling clear_dirty() before calling cell_defer().
      Incoming bios for that block will then be detained in the cell and
      released only after clear_dirty() has completed, so the race will not
      occur.
      
      Found by inspecting the code after noticing spurious dirty counts
      (scenario B).
      Signed-off-by: NAnssi Hannula <anssi.hannula@iki.fi>
      Acked-by: NJoe Thornber <ejt@redhat.com>
      Signed-off-by: NMike Snitzer <snitzer@redhat.com>
      Cc: stable@vger.kernel.org
      40aa978e
    • M
      pinctrl: baytrail: resolve unbalanced IRQ wake disable warning · 41939e69
      Mathias Nyman 提交于
      Add the IRQCHIP_SKIP_SET_WAKE flag to baytrail gpio irq_chip
      to resolve unbalaced IRQ wake disable warnings.
      Suggested-by: NBorun Fu <borun.fu@intel.com>
      Signed-off-by: NMathias Nyman <mathias.nyman@linux.intel.com>
      Reviewed-by: NMika Westerberg <mika.westerberg@linux.intel.com>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      41939e69
    • W
      rbd: fix error return code in rbd_dev_device_setup() · 255939e7
      Wei Yongjun 提交于
      Fix to return -ENOMEM from the workqueue alloc error handling
      case instead of 0, as done elsewhere in this function.
      Reviewed-by: NAlex Elder <elder@linaro.org>
      Signed-off-by: NWei Yongjun <yongjun_wei@trendmicro.com.cn>
      255939e7