1. 17 4月, 2017 4 次提交
  2. 31 1月, 2017 1 次提交
  3. 30 11月, 2016 13 次提交
  4. 21 7月, 2016 1 次提交
  5. 07 7月, 2016 6 次提交
  6. 08 6月, 2016 1 次提交
  7. 07 5月, 2016 7 次提交
  8. 19 3月, 2016 2 次提交
  9. 04 3月, 2016 3 次提交
  10. 05 2月, 2016 1 次提交
  11. 12 1月, 2016 1 次提交
    • J
      lightnvm: manage open and closed blocks separately · ff0e498b
      Javier González 提交于
      LightNVM targets need to know the state of the flash block when doing
      flash optimizations. An example is implementing a write buffer to
      respect the flash page size. Currently, block state is not accounted
      for; the media manager only differentiates among free, bad and in-use
      blocks.
      
      This patch adds the logic in the generic media manager to enable
      targets manage blocks into open and close separately, and it implements
      such management in rrpc. It also adds a set of flags to describe the
      state of the block (open, closed, free, bad).
      
      In order to avoid taking two locks (nvm_lun and rrpc_lun) consecutively,
      we introduce lockless get_/put_block primitives so that the open and
      close list locks and future common logic is handled within the nvm_lun
      lock.
      Signed-off-by: NJavier González <javier@cnexlabs.com>
      Signed-off-by: NMatias Bjørling <m@bjorling.me>
      Signed-off-by: NJens Axboe <axboe@fb.com>
      ff0e498b