Date: Sun, 30 Dec 2018 15:22:26 +0000 (UTC) From: Konstantin Belousov <kib@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org Subject: svn commit: r342624 - stable/12/sys/dev/nvdimm Message-ID: <201812301522.wBUFMQHT037442@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: kib Date: Sun Dec 30 15:22:26 2018 New Revision: 342624 URL: https://svnweb.freebsd.org/changeset/base/342624 Log: MFC r342382: nvdimm SPA geom: Update bio fields needed for devstat_end_transaction_bio(). Modified: stable/12/sys/dev/nvdimm/nvdimm_spa.c Directory Properties: stable/12/ (props changed) Modified: stable/12/sys/dev/nvdimm/nvdimm_spa.c ============================================================================== --- stable/12/sys/dev/nvdimm/nvdimm_spa.c Sun Dec 30 15:21:25 2018 (r342623) +++ stable/12/sys/dev/nvdimm/nvdimm_spa.c Sun Dec 30 15:22:26 2018 (r342624) @@ -336,8 +336,10 @@ nvdimm_spa_g_thread(void *arg) auio.uio_td = curthread; error = uiomove_fromphys(bp->bio_ma, bp->bio_ma_offset, bp->bio_length, &auio); + bp->bio_resid = auio.uio_resid; } else { nvdimm_spa_g_all_unmapped(spa, bp, bp->bio_cmd); + bp->bio_resid = bp->bio_length; error = 0; } } else { @@ -352,7 +354,9 @@ nvdimm_spa_g_thread(void *arg) UIO_WRITE; auio.uio_td = curthread; error = nvdimm_spa_uio(spa, &auio); + bp->bio_resid = auio.uio_resid; } + bp->bio_bcount = bp->bio_length; devstat_end_transaction_bio(spa->spa_g_devstat, bp); completed: bp->bio_completed = bp->bio_length;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201812301522.wBUFMQHT037442>