mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 05:48:40 +00:00
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: 0880a9aa2d
("lightnvm: pblk: delete redundant buffer pointer")
Signed-off-by: Javier González <javier@cnexlabs.com>
Signed-off-by: Matias Bjørling <m@bjorling.me>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
parent
cd8ddbf7a5
commit
e0e12a707f
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue