Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751975AbeAEPmg (ORCPT + 1 other); Fri, 5 Jan 2018 10:42:36 -0500 Received: from mail-ua0-f179.google.com ([209.85.217.179]:45025 "EHLO mail-ua0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751661AbeAEPme (ORCPT ); Fri, 5 Jan 2018 10:42:34 -0500 X-Google-Smtp-Source: ACJfBouTlQHjco9/0gfl9++YNxSrfV11sH75iy3BnPCd1XgE08NcUaPSAIRrvxArnA4OZpk1G60h0g== Date: Fri, 5 Jan 2018 08:42:31 -0700 From: Jens Axboe To: Matias =?iso-8859-1?Q?Bj=F8rling?= Cc: linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, Javier =?iso-8859-1?Q?Gonz=E1lez?= Subject: Re: [GIT PULL 24/25] lightnvm: pblk: add iostat support Message-ID: <20180105154230.GA13829@kernel.dk> References: <20180105131621.20808-1-m@bjorling.me> <20180105131621.20808-25-m@bjorling.me> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20180105131621.20808-25-m@bjorling.me> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: On Fri, Jan 05 2018, Matias Bj?rling wrote: > From: Javier Gonz?lez > > Since pblk registers its own block device, the iostat accounting is > not automatically done for us. Therefore, add the necessary > accounting logic to satisfy the iostat interface. Ignorant question - why is it a raw block device, not using blk-mq? > @@ -193,9 +197,9 @@ static void pblk_end_io_read(struct nvm_rq *rqd) > __pblk_end_io_read(pblk, rqd, true); > } > > -static int pblk_fill_partial_read_bio(struct pblk *pblk, struct nvm_rq *rqd, > - unsigned int bio_init_idx, > - unsigned long *read_bitmap) > +static int pblk_partial_read_bio(struct pblk *pblk, struct nvm_rq *rqd, > + unsigned int bio_init_idx, > + unsigned long *read_bitmap) > { > struct bio *new_bio, *bio = rqd->bio; > struct pblk_sec_meta *meta_list = rqd->meta_list; > @@ -306,6 +310,8 @@ static int pblk_fill_partial_read_bio(struct pblk *pblk, struct nvm_rq *rqd, > return NVM_IO_OK; > > err: > + pr_err("pblk: failed to perform partial read\n"); > + > /* Free allocated pages in new bio */ > pblk_bio_free_pages(pblk, bio, 0, new_bio->bi_vcnt); > __pblk_end_io_read(pblk, rqd, false); This seems to include unrelated changes, like the rename above and the addition of the error logging? -- Jens Axboe