1. 28 3月, 2020 2 次提交
  2. 26 3月, 2020 36 次提交
  3. 25 3月, 2020 1 次提交
  4. 23 3月, 2020 1 次提交
    • C
      bcache: optimize barrier usage for atomic operations · eb9b6666
      Coly Li 提交于
      The idea of this patch is from Davidlohr Bueso, he posts a patch
      for bcache to optimize barrier usage for read-modify-write atomic
      bitops. Indeed such optimization can also apply on other locations
      where smp_mb() is used before or after an atomic operation.
      
      This patch replaces smp_mb() with smp_mb__before_atomic() or
      smp_mb__after_atomic() in btree.c and writeback.c,  where it is used
      to synchronize memory cache just earlier on other cores. Although
      the locations are not on hot code path, it is always not bad to mkae
      things a little better.
      Signed-off-by: NColy Li <colyli@suse.de>
      Cc: Davidlohr Bueso <dave@stgolabs.net>
      Signed-off-by: NJens Axboe <axboe@kernel.dk>
      eb9b6666