1. 08 6月, 2016 2 次提交
  2. 24 5月, 2016 3 次提交
  3. 13 5月, 2016 4 次提交
  4. 10 5月, 2016 6 次提交
  5. 06 5月, 2016 7 次提交
  6. 05 5月, 2016 13 次提交
  7. 30 4月, 2016 1 次提交
  8. 26 4月, 2016 1 次提交
  9. 25 4月, 2016 1 次提交
  10. 17 4月, 2016 1 次提交
  11. 15 4月, 2016 1 次提交
    • M
      dm cache metadata: fix READ_LOCK macros and cleanup WRITE_LOCK macros · 9567366f
      Mike Snitzer 提交于
      The READ_LOCK macro was incorrectly returning -EINVAL if
      dm_bm_is_read_only() was true -- it will always be true once the cache
      metadata transitions to read-only by dm_cache_metadata_set_read_only().
      
      Wrap READ_LOCK and WRITE_LOCK multi-statement macros in do {} while(0).
      Also, all accesses of the 'cmd' argument passed to these related macros
      are now encapsulated in parenthesis.
      
      A follow-up patch can be developed to eliminate the use of macros in
      favor of pure C code.  Avoiding that now given that this needs to apply
      to stable@.
      Reported-by: NBen Hutchings <ben@decadent.org.uk>
      Signed-off-by: NMike Snitzer <snitzer@redhat.com>
      Fixes: d14fcf3d ("dm cache: make sure every metadata function checks fail_io")
      Cc: stable@vger.kernel.org
      9567366f