Commit e0e12a70 authored by Javier González's avatar Javier González Committed by Jens Axboe

lightnvm: pblk: fix write I/O sync stat

Fix stat counter to collect the right number of I/Os being synced on the
completion path.

Fixes: 0880a9aa ("lightnvm: pblk: delete redundant buffer pointer")
Signed-off-by: default avatarJavier González <javier@cnexlabs.com>
Signed-off-by: default avatarMatias Bjørling <m@bjorling.me>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent cd8ddbf7
...@@ -38,7 +38,7 @@ static unsigned long pblk_end_w_bio(struct pblk *pblk, struct nvm_rq *rqd, ...@@ -38,7 +38,7 @@ static unsigned long pblk_end_w_bio(struct pblk *pblk, struct nvm_rq *rqd,
c_ctx->nr_padded); c_ctx->nr_padded);
#ifdef CONFIG_NVM_DEBUG #ifdef CONFIG_NVM_DEBUG
atomic_long_add(c_ctx->nr_valid, &pblk->sync_writes); atomic_long_add(rqd->nr_ppas, &pblk->sync_writes);
#endif #endif
ret = pblk_rb_sync_advance(&pblk->rwb, c_ctx->nr_valid); ret = pblk_rb_sync_advance(&pblk->rwb, c_ctx->nr_valid);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment