Re: [RFC PATCH v5 0/4] add simple copy support

2021-04-13 Thread Javier González
On 13.04.2021 18:38, Max Gurtovoy wrote: On 4/11/2021 10:26 PM, Javier González wrote: On 11.04.2021 12:10, Max Gurtovoy wrote: On 4/10/2021 9:32 AM, Javier González wrote: On 10 Apr 2021, at 02.30, Chaitanya Kulkarni wrote: On 4/9/21 17:22, Max Gurtovoy wrote: On 2/19/2021 2:45 PM

Re: [RFC PATCH v5 0/4] add simple copy support

2021-04-11 Thread Javier González
On 11.04.2021 12:10, Max Gurtovoy wrote: On 4/10/2021 9:32 AM, Javier González wrote: On 10 Apr 2021, at 02.30, Chaitanya Kulkarni wrote: On 4/9/21 17:22, Max Gurtovoy wrote: On 2/19/2021 2:45 PM, SelvaKumar S wrote: This patchset tries to add support for TP4065a ("Simple Copy Co

Re: [RFC PATCH v5 0/4] add simple copy support

2021-04-10 Thread Javier González
> On 10 Apr 2021, at 02.30, Chaitanya Kulkarni > wrote: > > On 4/9/21 17:22, Max Gurtovoy wrote: >>> On 2/19/2021 2:45 PM, SelvaKumar S wrote: >>> This patchset tries to add support for TP4065a ("Simple Copy Command"), >>> v2020.05.04 ("Ratified") >>> >>> The Specification can be found in

Re: [PATCH 1/1] nvme-pci: add the DISABLE_WRITE_ZEROES quirk for a Samsung PM1725a

2021-04-08 Thread Javier González
On 08.04.2021 14:15, Christoph Hellwig wrote: On Thu, Apr 08, 2021 at 12:30:16PM +0200, Javier González wrote: Aligning to MDTS is our current behavior, although all kernels up to 5.11 had a bug in the calculation. I see. Let me check internally and see what's going on with write-zeroes

Re: [PATCH 1/1] nvme-pci: add the DISABLE_WRITE_ZEROES quirk for a Samsung PM1725a

2021-04-08 Thread Javier González
On 23.03.2021 13:43, Javier González wrote: On 23.03.2021 13:31, Christoph Hellwig wrote: On Tue, Mar 23, 2021 at 09:37:49AM +0100, Javier González wrote: Quick question. It seems like the current quirk simply disables write-zeroes. Would you be open for a quirk that aligns with MDTS

Re: [PATCH 1/1] nvme-pci: add the DISABLE_WRITE_ZEROES quirk for a Samsung PM1725a

2021-03-23 Thread Javier González
On 23.03.2021 13:31, Christoph Hellwig wrote: On Tue, Mar 23, 2021 at 09:37:49AM +0100, Javier González wrote: Quick question. It seems like the current quirk simply disables write-zeroes. Would you be open for a quirk that aligns with MDTS for models that implemented it this way before TP4040

Re: [PATCH 1/1] nvme-pci: add the DISABLE_WRITE_ZEROES quirk for a Samsung PM1725a

2021-03-23 Thread Javier González
On 11.03.2021 11:47, Christoph Hellwig wrote: On Wed, Mar 10, 2021 at 12:00:30PM -0800, Keith Busch wrote: On Wed, Mar 10, 2021 at 02:41:10PM +0100, Christoph Hellwig wrote: > On Wed, Mar 10, 2021 at 02:21:56PM +0100, Christoph Hellwig wrote: > > Can you try this patch instead? > > > >

Re: [PATCH] lightnvm: fix memory leak when submit fails

2021-01-21 Thread Javier González
On 21.01.2021 05:47, Jens Axboe wrote: On 1/21/21 12:22 AM, Pan Bian wrote: The allocated page is not released if error occurs in nvm_submit_io_sync_raw(). __free_page() is moved ealier to avoid possible memory leak issue. Applied, thanks. General question for Matias - is lightnvm maintained

Re: [RFC PATCH v2 0/2] add simple copy support

2020-12-09 Thread Javier González
On 08.12.2020 13:24, Johannes Thumshirn wrote: On 08/12/2020 14:13, Javier González wrote: On 08.12.2020 12:37, Johannes Thumshirn wrote: On 08/12/2020 13:22, Javier González wrote: Good idea. Are you thinking of a sysfs entry to select the backend? Not sure on this one, initially I thought

Re: [RFC PATCH v2 0/2] add simple copy support

2020-12-08 Thread Javier González
On 08.12.2020 12:37, Johannes Thumshirn wrote: On 08/12/2020 13:22, Javier González wrote: Good idea. Are you thinking of a sysfs entry to select the backend? Not sure on this one, initially I thought of a sysfs file, but then how would you do it. One "global" sysfs entry is prob

Re: [RFC PATCH v2 0/2] add simple copy support

2020-12-08 Thread Javier González
On 08.12.2020 08:40, Johannes Thumshirn wrote: On 07/12/2020 20:27, Javier González wrote: Good point. We can share some performance data on how Simple Copy scales in terms of bw / latency and the CPU usage. Do you have anything else in mind? With an emulation in the kernel, we could make

Re: [RFC PATCH v2 0/2] add simple copy support

2020-12-08 Thread Javier González
On 08.12.2020 07:44, Hannes Reinecke wrote: On 12/7/20 11:12 PM, Douglas Gilbert wrote: On 2020-12-07 9:56 a.m., Hannes Reinecke wrote: On 12/7/20 3:11 PM, Christoph Hellwig wrote: So, I'm really worried about:   a) a good use case.  GC in f2fs or btrfs seem like good use cases, as does

Re: [RFC PATCH v2 0/2] add simple copy support

2020-12-07 Thread Javier González
On 07.12.2020 15:56, Hannes Reinecke wrote: On 12/7/20 3:11 PM, Christoph Hellwig wrote: So, I'm really worried about: a) a good use case. GC in f2fs or btrfs seem like good use cases, as does accelating dm-kcopyd. I agree with Damien that lifting dm-kcopyd to common code would also

Re: [RFC PATCH v2 0/2] add simple copy support

2020-12-07 Thread Javier González
On 07.12.2020 15:11, Christoph Hellwig wrote: So, I'm really worried about: a) a good use case. GC in f2fs or btrfs seem like good use cases, as does accelating dm-kcopyd. I agree with Damien that lifting dm-kcopyd to common code would also be really nice. I'm not 100% sure it should

Re: [PATCH v3 4/4] io_uring: add support for zone-append

2020-07-08 Thread Javier González
> On 8 Jul 2020, at 18.34, Matthew Wilcox wrote: > > On Wed, Jul 08, 2020 at 06:08:12PM +0200, Javier González wrote: >>> I just wanted to get clarification there, because to me it sounded like >>> you expected Kanchan to do it, and Kanchan assuming it &qu

Re: [PATCH v3 4/4] io_uring: add support for zone-append

2020-07-08 Thread Javier González
> On 8 Jul 2020, at 17.06, Jens Axboe wrote: > > On 7/8/20 9:02 AM, Matthew Wilcox wrote: >>> On Wed, Jul 08, 2020 at 08:59:50AM -0600, Jens Axboe wrote: >>> On 7/8/20 8:58 AM, Matthew Wilcox wrote: On Wed, Jul 08, 2020 at 08:54:07AM -0600, Jens Axboe wrote: > On 7/8/20 6:58 AM,

Re: [PATCH 2/2] block: add BLKSETDESCZONE ioctl for Zoned Block Devices

2020-07-07 Thread Javier González
On 03.07.2020 09:44, Matias Bjorling wrote: -Original Message- From: Javier González Sent: Monday, 29 June 2020 21.39 To: Damien Le Moal Cc: Matias Bjorling ; ax...@kernel.dk; kbu...@kernel.org; h...@lst.de; s...@grimberg.me; martin.peter...@oracle.com; Niklas Cassel ; Hans Holmberg

Re: [PATCH 2/2] block: add max_active_zones to blk-sysfs

2020-07-02 Thread Javier González
On 02.07.2020 08:41, Niklas Cassel wrote: On Wed, Jul 01, 2020 at 01:16:52PM +0200, Javier González wrote: On 16.06.2020 12:25, Niklas Cassel wrote: > Add a new max_active zones definition in the sysfs documentation. > This definition will be common for all devices utilizing the zoned

Re: [PATCH 2/2] block: add max_active_zones to blk-sysfs

2020-07-01 Thread Javier González
On 16.06.2020 12:25, Niklas Cassel wrote: Add a new max_active zones definition in the sysfs documentation. This definition will be common for all devices utilizing the zoned block device support in the kernel. Export max_active_zones according to this new definition for NVMe Zoned Namespace

Re: [PATCH 2/2] block: add max_active_zones to blk-sysfs

2020-06-29 Thread Javier González
) +{ +} +static inline unsigned int queue_max_active_zones(const struct request_queue *q) +{ + return 0; +} #endif /* CONFIG_BLK_DEV_ZONED */ static inline bool rq_is_sync(struct request *rq) -- 2.26.2 ___ linux-nvme mailing list linux-n...@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-nvme Looks good to me Reviewed-by: Javier González

Re: [PATCH 1/2] block: add max_open_zones to blk-sysfs

2020-06-29 Thread Javier González
} #endif /* CONFIG_BLK_DEV_ZONED */ static inline bool rq_is_sync(struct request *rq) -- 2.26.2 ___ linux-nvme mailing list linux-n...@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-nvme Looks good to me. Reviewed-by: Javier González

Re: [PATCH 2/2] block: add BLKSETDESCZONE ioctl for Zoned Block Devices

2020-06-29 Thread Javier González
On 29.06.2020 01:00, Damien Le Moal wrote: On 2020/06/29 8:01, Matias Bjorling wrote: The NVMe Zoned Namespace Command Set adds support for associating data to a zone through the Zone Descriptor Extension feature. To allow user-space to associate data to a zone, add support through the

Re: [PATCH 0/3] zone-append support in aio and io-uring

2020-06-18 Thread Javier González
On 18.06.2020 10:32, Matias Bjørling wrote: On 18/06/2020 10.27, Javier González wrote: On 18.06.2020 10:04, Matias Bjørling wrote: On 17/06/2020 19.23, Kanchan Joshi wrote: This patchset enables issuing zone-append using aio and io-uring direct-io interface. For aio, this introduces opcode

Re: [PATCH 0/3] zone-append support in aio and io-uring

2020-06-18 Thread Javier González
On 17.06.2020 23:56, Christoph Hellwig wrote: On Wed, Jun 17, 2020 at 10:53:36PM +0530, Kanchan Joshi wrote: This patchset enables issuing zone-append using aio and io-uring direct-io interface. For aio, this introduces opcode IOCB_CMD_ZONE_APPEND. Application uses start LBA of the zone to

Re: [PATCH 0/3] zone-append support in aio and io-uring

2020-06-18 Thread Javier González
On 18.06.2020 10:04, Matias Bjørling wrote: On 17/06/2020 19.23, Kanchan Joshi wrote: This patchset enables issuing zone-append using aio and io-uring direct-io interface. For aio, this introduces opcode IOCB_CMD_ZONE_APPEND. Application uses start LBA of the zone to issue append. On

Re: [PATCH] lightnvm: pblk: Fix reference count leak in pblk_sysfs_init.

2020-05-28 Thread Javier González
t; } -- 2.17.1 Looks good to me. Reviewed-by: Javier González

Re: [PATCH] nvme: prevent double free in nvme_alloc_ns() error handling

2020-04-28 Thread Javier González
On 28.04.2020 07:49, Niklas Cassel wrote: On Tue, Apr 28, 2020 at 09:06:51AM +0200, Javier González wrote: CAUTION: This email originated from outside of Western Digital. Do not click on links or open attachments unless you recognize the sender and know that the content is safe

Re: [PATCH] nvme: prevent double free in nvme_alloc_ns() error handling

2020-04-28 Thread Javier González
On 27.04.2020 18:22, Niklas Cassel wrote: On Mon, Apr 27, 2020 at 08:03:11PM +0200, Javier González wrote: On 27.04.2020 14:34, Niklas Cassel wrote: > When jumping to the out_put_disk label, we will call put_disk(), which will > trigger a call to disk_release(), which calls blk_put

Re: [PATCH 4/4] block: stop exporting bio_map_kern

2019-07-31 Thread Javier González
bio; > } > -EXPORT_SYMBOL(bio_map_kern); > > static void bio_copy_kern_endio(struct bio *bio) > { > -- > 2.7.4 Haven’t realized we were the only users at this point. Nice cleanup. Reviewed-by: Javier González signature.asc Description: Message signed with OpenPGP

Re: [PATCH] lightnvm: introduce pr_fmt for the previx nvm

2019-07-22 Thread Javier González
ns the first line. > > Yeah Okay. Will prepare V2 with this and also s/previx/prefix in the > title. > > Thanks for the review. > > Minwoo Im Besides Chaitanya’s comments, looks good. You can add my review on V2. Reviewed-by: Javier González signature.asc Description: Message signed with OpenPGP

Re: [PATCH] lightnvm: pblk: Fix freeing merged pages

2019-05-15 Thread Javier González
for (i = 0; i < bio->bi_vcnt; i++) { > + bv = >bi_io_vec[i]; > + page = bv->bv_page; > + for (e = 0; e < bv->bv_len; e += PBLK_EXPOSED_PAGE_SIZE, nbv++) > + if (nbv >= off) > + mem

[PATCH] pblk: fix max_io calculation

2019-03-07 Thread Javier González
of the largest possible size is submitted. Fixes: f9f9d1ae2c66 ("lightnvm: pblk: prevent stall due to wb threshold") Signed-off-by: Javier González --- Matias: Can you apply this as a fix to 5.1. This is a case I missed when fixing the wb threshold, which is also scheduled for 5.1 Than

Re: [LSF/MM TOPIC] BPF for Block Devices

2019-02-07 Thread Javier González
+ Mailing lists > On 7 Feb 2019, at 18.48, Javier González wrote: > > > >> On 7 Feb 2019, at 18.12, Stephen Bates wrote: >> >> Hi All >> >>> A BPF track will join the annual LSF/MM Summit this year! Please read the >>> updated de

[PATCH V3] lightnvm: pblk: prevent stall due to wb threshold

2019-02-04 Thread Javier González
htnvm: pblk: guarantee that backpointer is respected on writer stall") Signed-off-by: Javier González --- Changes since V1: - Fix a bad arithmetinc on the rate-limiter max_io calculation (from Hans) Changes since V2: - Address case where mw_cunits = 0 in the new math driver

Re: [PATCH V2] lightnvm: pblk: fix race condition on GC

2019-02-04 Thread Javier González
t; index a6386d5acd73..ac3ab778e976 100644 > --- a/drivers/lightnvm/pblk.h > +++ b/drivers/lightnvm/pblk.h > @@ -487,6 +487,7 @@ struct pblk_line { > __le32 *vsc;/* Valid sector count in line */ > > struct kref ref;/* Write buffer L2P references */ > + atomic_t sec_to_update; /* Outstanding L2P updates to ppa */ > > struct pblk_w_err_gc *w_err_gc; /* Write error gc recovery metadata */ > > -- > 2.17.1 Looks good to me. Again, good marathon-catch! :) Reviewed-by: Javier González signature.asc Description: Message signed with OpenPGP

Re: [PATCH V2] lightnvm: pblk: prevent stall due to wb threshold

2019-02-04 Thread Javier González
> On 31 Jan 2019, at 21.10, Hans Holmberg wrote: > > On Thu, Jan 31, 2019 at 5:33 PM Javier González wrote: >>> On 31 Jan 2019, at 11.41, Hans Holmberg wrote: >>> >>> Hi Javier! >>> >>> How did you test this? I'm trying to add a test cas

Re: [PATCH V2] lightnvm: pblk: prevent stall due to wb threshold

2019-01-31 Thread Javier González
t=1 > 1+0 records in > 1+0 records out > 262144 bytes (262 kB, 256 KiB) copied, 0.000718515 s, 365 MB/s > # dd if=/dev/zero of=/dev/pblk0 oflag=direct bs=512k count=1 > > > >> On Wed, Jan 30, 2019 at 11:28 AM Javier González wrote: >> >> In order to respect mw

[PATCH V2] lightnvm: pblk: prevent stall due to wb threshold

2019-01-30 Thread Javier González
htnvm: pblk: guarantee that backpointer is respected on writer stall") Signed-off-by: Javier González --- Changes since V1: - Fix a bad arithmetinc on the rate-limiter max_io calculation (from Hans) drivers/lightnvm/pblk-rb.c | 25 +++-- drivers/lightnvm/pblk

Re: [PATCH V2] lightnvm: pblk: extend line wp balance check

2019-01-30 Thread Javier González
-356,7 +376,7 @@ static int pblk_recov_scan_oob(struct pblk *pblk, struct > pblk_line *line, > int ret; > u64 left_ppas = pblk_sec_in_open_line(pblk, line) - lm->smeta_sec; > > - if (pblk_line_wp_is_unbalanced(pblk, line)) > + if (pblk_line_wps_are_unbalanced(pblk, line)) > pblk_warn(pblk, "recovering unbalanced line (%d)\n", line->id); > > ppa_list = p.ppa_list; > -- > 2.17.1 Looks good to me. Reviewed-by: Javier González signature.asc Description: Message signed with OpenPGP

Re: [PATCH] lightnvm: pblk: fix race condition on GC

2019-01-29 Thread Javier González
> On 29 Jan 2019, at 17.36, Heiner Litz wrote: > > Javier, > > On Tue, Jan 29, 2019 at 12:13 AM Javier González wrote: > > On 27 Jan 2019, at 07.54, Heiner Litz wrote: > > > > This patch fixes a race condition where a write is mapped to the last > >

Re: [PATCH] lightnvm: pblk: extend line wp balance check

2019-01-29 Thread Javier González
> On 29 Jan 2019, at 16.49, Hans Holmberg wrote: > > On Tue, Jan 29, 2019 at 4:03 PM Javier González wrote: >>> On 29 Jan 2019, at 13.49, Hans Holmberg wrote: >>> >>> On Tue, Jan 29, 2019 at 12:19 PM Javier González wrote: >>>>>

Re: [PATCH] lightnvm: pblk: extend line wp balance check

2019-01-29 Thread Javier González
> On 29 Jan 2019, at 13.49, Hans Holmberg wrote: > > On Tue, Jan 29, 2019 at 12:19 PM Javier González wrote: >>> On 29 Jan 2019, at 09.47, h...@owltronix.com wrote: >>> >>> From: Hans Holmberg >>> >>> pblk stripes writes of minimal

Re: [PATCH] lightnvm: pblk: extend line wp balance check

2019-01-29 Thread Javier González
> On 29 Jan 2019, at 09.47, h...@owltronix.com wrote: > > From: Hans Holmberg > > pblk stripes writes of minimal write size across all non-offline chunks > in a line, which means that the maximum write pointer delta should not > exceed the minimal write size. Extend the line write pointer

Re: [PATCH] lightnvm: pblk: prevent stall due to wb threshold

2019-01-29 Thread Javier González
> On 29 Jan 2019, at 11.15, Hans Holmberg > wrote: > > On Fri, Jan 25, 2019 at 2:08 PM Matias Bjørling wrote: >> On 1/25/19 11:09 AM, Javier González wrote: >>> In order to respect mw_cuinits, pblk's write buffer maintains a >>> backpointer to protect

Re: [PATCH] lightnvm: pblk: fix race condition on GC

2019-01-29 Thread Javier González
> On 27 Jan 2019, at 07.54, Heiner Litz wrote: > > This patch fixes a race condition where a write is mapped to the last > sectors of a line. The write is synced to the device but the L2P is not > updated yet. When the line is garbage collected before the L2P update is > performed, the sectors

[PATCH] lightnvm: pblk: prevent stall due to wb threshold

2019-01-25 Thread Javier González
htnvm: pblk: guarantee that backpointer is respected on writer stall") Signed-off-by: Javier González --- drivers/lightnvm/pblk-rb.c | 25 +++-- drivers/lightnvm/pblk-rl.c | 5 ++--- drivers/lightnvm/pblk.h| 2 +- 3 files changed, 22 insertions(+), 10 deletions(-)

Re: [PATCH] lightnvm: pblk: stop taking the free lock in in pblk_lines_free

2019-01-25 Thread Javier González
> On 25 Jan 2019, at 10.15, Hans Holmberg > wrote: > > On Thu, Jan 24, 2019 at 2:19 PM Javier González wrote: >>> On 22 Jan 2019, at 11.15, h...@owltronix.com wrote: >>> >>> From: Hans Holmberg >>> >>> pblk_line_meta_free might sl

Re: [PATCH v1] : Switch to use new generic UUID API

2019-01-24 Thread Javier González
> On 24 Jan 2019, at 17.38, Andy Shevchenko wrote: > > On Thu, Jan 24, 2019 at 4:36 PM Javier González wrote: > >> It is not pushed anywhere yet, but I have been working on a tool to make >> a pblk recovery tool to enable FTL repairs if something fails in the >>

Re: [PATCH v2] lightnvm: pblk: Switch to use new generic UUID API

2019-01-24 Thread Javier González
> + guid_t instance_uuid; > > /* Persistent write amplification counters, 4kb sector I/Os */ > atomic64_t user_wa; /* Sectors written by user */ > @@ -1360,14 +1360,6 @@ static inline unsigned int pblk_get_secs(struct bio > *bio) > return bio->

Re: [PATCH v1] : Switch to use new generic UUID API

2019-01-24 Thread Javier González
> On 24 Jan 2019, at 15.13, Andy Shevchenko wrote: > > On Thu, Jan 24, 2019 at 3:45 PM Javier González wrote: >>> On 24 Jan 2019, at 14.36, Andy Shevchenko wrote: >>> On Thu, Jan 24, 2019 at 3:19 PM Javier González wrote: >>>>> On 24 Jan 201

Re: [PATCH v1] : Switch to use new generic UUID API

2019-01-24 Thread Javier González
> On 24 Jan 2019, at 14.36, Andy Shevchenko wrote: > > On Thu, Jan 24, 2019 at 3:19 PM Javier González wrote: >>> On 24 Jan 2019, at 13.16, Andy Shevchenko >>> wrote: >>> On Mon, Jan 21, 2019 at 09:47:32AM +0100, Christoph Hellwig wrote: >>>>

Re: [PATCH] lightnvm: pblk: stop taking the free lock in in pblk_lines_free

2019-01-24 Thread Javier González
ee(pblk); > > -- > 2.17.1 Can you add a comment too indicating that this is only safe on a single threaded shutdown? Otherwise the patch looks good. Reviewed-by: Javier González signature.asc Description: Message signed with OpenPGP

Re: [PATCH v1] : Switch to use new generic UUID API

2019-01-24 Thread Javier González
> On 24 Jan 2019, at 13.16, Andy Shevchenko > wrote: > > On Mon, Jan 21, 2019 at 09:47:32AM +0100, Christoph Hellwig wrote: >> On Thu, Jan 10, 2019 at 04:30:51PM +0200, Andy Shevchenko wrote: >>> There are new types and helpers that are supposed to be used in new code. >>> >>> As a

[PATCH 2/2] lightnvm: pblk: retrieve chunk metadata on erase

2018-10-04 Thread Javier González
pointer and the state on core so that the erase path is transparent to pblk wrt OCSSD version. Signed-off-by: Javier González --- drivers/lightnvm/core.c | 44 ++-- drivers/lightnvm/pblk-core.c | 54 +--- 2 files changed

[PATCH 2/2] lightnvm: pblk: retrieve chunk metadata on erase

2018-10-04 Thread Javier González
pointer and the state on core so that the erase path is transparent to pblk wrt OCSSD version. Signed-off-by: Javier González --- drivers/lightnvm/core.c | 44 ++-- drivers/lightnvm/pblk-core.c | 54 +--- 2 files changed

[PATCH 0/3] lightnvm: pblk: support variable OOB size

2018-08-29 Thread Javier González
for outlined metadata for the case where the reported OOB area is 0. It should be pretty simple to do that on top of these patches though. Thanks, Javier Javier González (3): lightnvm: use internal allocation for chunk log page lightnvm: do no update csecs and sos on 1.2 lightnvm: pblk: support

[PATCH 0/3] lightnvm: pblk: support variable OOB size

2018-08-29 Thread Javier González
for outlined metadata for the case where the reported OOB area is 0. It should be pretty simple to do that on top of these patches though. Thanks, Javier Javier González (3): lightnvm: use internal allocation for chunk log page lightnvm: do no update csecs and sos on 1.2 lightnvm: pblk: support

[PATCH] lightnvm: pblk: take write semaphore on metadata

2018-08-03 Thread Javier González
in the metdatada scheme could cause ordering issues. Signed-off-by: Javier González --- drivers/lightnvm/pblk-core.c | 14 -- drivers/lightnvm/pblk.h | 1 + 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/drivers/lightnvm/pblk-core.c b/drivers/lightnvm/pblk-core.c index

[PATCH] lightnvm: pblk: take write semaphore on metadata

2018-08-03 Thread Javier González
in the metdatada scheme could cause ordering issues. Signed-off-by: Javier González --- drivers/lightnvm/pblk-core.c | 14 -- drivers/lightnvm/pblk.h | 1 + 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/drivers/lightnvm/pblk-core.c b/drivers/lightnvm/pblk-core.c index

[PATCH 02/11] lightnvm: pblk: recheck for bad lines at runtime

2018-04-30 Thread Javier González
Bad blocks can grow at runtime. Check that the number of valid blocks in a line are within the sanity threshold before allocating the line for new writes. Signed-off-by: Javier González <jav...@cnexlabs.com> --- drivers/lightnvm/pblk-core.c | 38 -- d

[PATCH 02/11] lightnvm: pblk: recheck for bad lines at runtime

2018-04-30 Thread Javier González
Bad blocks can grow at runtime. Check that the number of valid blocks in a line are within the sanity threshold before allocating the line for new writes. Signed-off-by: Javier González --- drivers/lightnvm/pblk-core.c | 38 -- drivers/lightnvm/pblk-init.c

[PATCH 03/11] lightnvm: pblk: check read lba on gc path

2018-04-30 Thread Javier González
Check that the lba stored in the LBA metadata is correct in the GC path too. This requires a new helper function to check random reads in the vector read. Signed-off-by: Javier González <jav...@cnexlabs.com> --- drivers/lightnvm/pblk-read.c | 39 +--

[PATCH 03/11] lightnvm: pblk: check read lba on gc path

2018-04-30 Thread Javier González
Check that the lba stored in the LBA metadata is correct in the GC path too. This requires a new helper function to check random reads in the vector read. Signed-off-by: Javier González --- drivers/lightnvm/pblk-read.c | 39 +-- 1 file changed, 33 insertions

[PATCH 06/11] lightnvm: pblk: return NVM_ error on failed submission

2018-04-30 Thread Javier González
Return a meaningful error when the sanity vector I/O check fails. Signed-off-by: Javier González <jav...@cnexlabs.com> --- drivers/lightnvm/pblk-core.c | 22 -- 1 file changed, 8 insertions(+), 14 deletions(-) diff --git a/drivers/lightnvm/pblk-core.c b/drivers/lightnv

[PATCH 06/11] lightnvm: pblk: return NVM_ error on failed submission

2018-04-30 Thread Javier González
Return a meaningful error when the sanity vector I/O check fails. Signed-off-by: Javier González --- drivers/lightnvm/pblk-core.c | 22 -- 1 file changed, 8 insertions(+), 14 deletions(-) diff --git a/drivers/lightnvm/pblk-core.c b/drivers/lightnvm/pblk-core.c index

[PATCH 04/11] lightnvn: pblk: improve error msg on corrupted LBAs

2018-04-30 Thread Javier González
In the event of a mismatch between the read LBA and the metadata pointer reported by the device, improve the error message to be able to detect the offending physical address (PPA) mapped to the corrupted LBA. Signed-off-by: Javier González <jav...@cnexlabs.com> --- drivers/lightnvm/pblk-

[PATCH 04/11] lightnvn: pblk: improve error msg on corrupted LBAs

2018-04-30 Thread Javier González
In the event of a mismatch between the read LBA and the metadata pointer reported by the device, improve the error message to be able to detect the offending physical address (PPA) mapped to the corrupted LBA. Signed-off-by: Javier González --- drivers/lightnvm/pblk-read.c | 42

[PATCH 05/11] lightnvm: pblk: warn in case of corrupted write buffer

2018-04-30 Thread Javier González
g the issue. Signed-off-by: Javier González <jav...@cnexlabs.com> --- drivers/lightnvm/pblk-rb.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/lightnvm/pblk-rb.c b/drivers/lightnvm/pblk-rb.c index 7a632913475f..024a366a995c 100644 --- a/drivers/lightnvm/pblk-r

[PATCH 05/11] lightnvm: pblk: warn in case of corrupted write buffer

2018-04-30 Thread Javier González
g the issue. Signed-off-by: Javier González --- drivers/lightnvm/pblk-rb.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/lightnvm/pblk-rb.c b/drivers/lightnvm/pblk-rb.c index 7a632913475f..024a366a995c 100644 --- a/drivers/lightnvm/pblk-rb.c +++ b/drivers/lightnvm/

[V2 PATCH 00/11] lightnvm: pblk: small fixes

2018-04-30 Thread Javier González
A bunch of small fixes and extra checks for pblk. Non is critical, though ("lightnvm: pblk: check for chunk size before allocating it") might be nice to get into 4.17 as it is a fix for the 2.0 pblk patches. Javier Javier González (11): lightnvm: pblk: fail gracefully on line alloc. failure

[PATCH 07/11] lightnvm: pblk: remove unnecessary indirection

2018-04-30 Thread Javier González
Call nvm_submit_io directly and remove an unnecessary indirection on the read path. Signed-off-by: Javier González <jav...@cnexlabs.com> --- drivers/lightnvm/pblk-read.c | 14 ++ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/drivers/lightnvm/pblk-read.c b/d

[PATCH 07/11] lightnvm: pblk: remove unnecessary indirection

2018-04-30 Thread Javier González
Call nvm_submit_io directly and remove an unnecessary indirection on the read path. Signed-off-by: Javier González --- drivers/lightnvm/pblk-read.c | 14 ++ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/drivers/lightnvm/pblk-read.c b/drivers/lightnvm/pblk-read.c

[V2 PATCH 00/11] lightnvm: pblk: small fixes

2018-04-30 Thread Javier González
A bunch of small fixes and extra checks for pblk. Non is critical, though ("lightnvm: pblk: check for chunk size before allocating it") might be nice to get into 4.17 as it is a fix for the 2.0 pblk patches. Javier Javier González (11): lightnvm: pblk: fail gracefully on line alloc. failure

[PATCH 11/11] lightnvm: pblk: remove dead function

2018-04-30 Thread Javier González
Remove dead function for manual sync. I/O Signed-off-by: Javier González <jav...@cnexlabs.com> --- drivers/lightnvm/pblk-core.c | 7 --- drivers/lightnvm/pblk.h | 1 - 2 files changed, 8 deletions(-) diff --git a/drivers/lightnvm/pblk-core.c b/drivers/lightnvm/pblk-core.c

[PATCH 11/11] lightnvm: pblk: remove dead function

2018-04-30 Thread Javier González
Remove dead function for manual sync. I/O Signed-off-by: Javier González --- drivers/lightnvm/pblk-core.c | 7 --- drivers/lightnvm/pblk.h | 1 - 2 files changed, 8 deletions(-) diff --git a/drivers/lightnvm/pblk-core.c b/drivers/lightnvm/pblk-core.c index cc34d5d9652d..5f960a6609c8

[PATCH 10/11] lightnvn: pass flag on graceful teardown to targets

2018-04-30 Thread Javier González
know when this happens. In the case of pblk, we pad the open line (close all open chunks) to improve data retention. In the event of an ungraceful shutdown, avoid this part and just clean up. Signed-off-by: Javier González <jav...@cnexlabs.com> --- drivers/lightnvm/core.c | 10 +-

[PATCH 10/11] lightnvn: pass flag on graceful teardown to targets

2018-04-30 Thread Javier González
know when this happens. In the case of pblk, we pad the open line (close all open chunks) to improve data retention. In the event of an ungraceful shutdown, avoid this part and just clean up. Signed-off-by: Javier González --- drivers/lightnvm/core.c | 10 +- drivers/lightnvm/pblk-c

[PATCH 08/11] lightnvm: pblk: remove unnecessary argument

2018-04-30 Thread Javier González
Remove unnecessary argument on pblk_line_free() Signed-off-by: Javier González <jav...@cnexlabs.com> --- drivers/lightnvm/pblk-core.c | 6 +++--- drivers/lightnvm/pblk-init.c | 2 +- drivers/lightnvm/pblk.h | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/d

[PATCH 08/11] lightnvm: pblk: remove unnecessary argument

2018-04-30 Thread Javier González
Remove unnecessary argument on pblk_line_free() Signed-off-by: Javier González --- drivers/lightnvm/pblk-core.c | 6 +++--- drivers/lightnvm/pblk-init.c | 2 +- drivers/lightnvm/pblk.h | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/lightnvm/pblk-core.c b

[PATCH 09/11] lightnvm: pblk: check for chunk size before allocating it

2018-04-30 Thread Javier González
Do the check for the chunk state after making sure that the chunk type is supported. Fixes: 32ef9412c114 ("lightnvm: pblk: implement get log report chunk") Signed-off-by: Javier González <jav...@cnexlabs.com> --- drivers/lightnvm/pblk-init.c | 6 +++--- 1 file changed, 3

[PATCH 09/11] lightnvm: pblk: check for chunk size before allocating it

2018-04-30 Thread Javier González
Do the check for the chunk state after making sure that the chunk type is supported. Fixes: 32ef9412c114 ("lightnvm: pblk: implement get log report chunk") Signed-off-by: Javier González --- drivers/lightnvm/pblk-init.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)

[PATCH 01/11] lightnvm: pblk: fail gracefully on line alloc. failure

2018-04-30 Thread Javier González
In the event of a line failing to allocate, fail gracefully and stop the pipeline to avoid more write failing in the same place. Signed-off-by: Javier González <jav...@cnexlabs.com> --- drivers/lightnvm/pblk-init.c | 5 + drivers/lightnvm/pblk-map.c

[PATCH 01/11] lightnvm: pblk: fail gracefully on line alloc. failure

2018-04-30 Thread Javier González
In the event of a line failing to allocate, fail gracefully and stop the pipeline to avoid more write failing in the same place. Signed-off-by: Javier González --- drivers/lightnvm/pblk-init.c | 5 + drivers/lightnvm/pblk-map.c | 33 - 2 files changed, 29

[PATCH V2] lightnvm: pblk: take bitmap alloc. out of critical section

2018-04-18 Thread Javier González
Changes since V1 - from Matias: - rename a function to line__reinit - propagate error code - improve commit message Javier González (1): lightnvm: pblk: take bitmap alloc. out of critical section drivers/lightnvm/pblk-core.c | 97 +--- 1 file changed

[PATCH V2] lightnvm: pblk: take bitmap alloc. out of critical section

2018-04-18 Thread Javier González
Changes since V1 - from Matias: - rename a function to line__reinit - propagate error code - improve commit message Javier González (1): lightnvm: pblk: take bitmap alloc. out of critical section drivers/lightnvm/pblk-core.c | 97 +--- 1 file changed

[PATCH] lightnvm: pblk: take bitmap alloc. out of critical section

2018-04-18 Thread Javier González
pblk allocates line bitmaps within the line lock unnecessarily. In order to take pressure out of the fast patch, allocate line bitmaps outside of this lock and refactor accordingly. Signed-off-by: Javier González <jav...@cnexlabs.com> --- drivers/lightnvm/pblk-core.

[PATCH] lightnvm: pblk: take bitmap alloc. out of critical section

2018-04-18 Thread Javier González
pblk allocates line bitmaps within the line lock unnecessarily. In order to take pressure out of the fast patch, allocate line bitmaps outside of this lock and refactor accordingly. Signed-off-by: Javier González --- drivers/lightnvm/pblk-core.c | 97

Re: [PATCH] lightnvm: pblk: take bitmap alloc. out of critical section

2018-04-18 Thread Javier González
> On 17 Apr 2018, at 04.48, Matias Bjørling <m...@lightnvm.io> wrote: > > On 4/16/18 12:21 PM, Javier González wrote: >> Allocate line bitmaps outside of the line lock on line preparation. >> Signed-off-by: Javier González <jav...@cnexlabs.com> > > >

Re: [PATCH] lightnvm: pblk: take bitmap alloc. out of critical section

2018-04-18 Thread Javier González
> On 17 Apr 2018, at 04.48, Matias Bjørling wrote: > > On 4/16/18 12:21 PM, Javier González wrote: >> Allocate line bitmaps outside of the line lock on line preparation. >> Signed-off-by: Javier González > > > The patch description tells what the patch does, i

Re: [PATCH 03/11] lightnvm: pblk: check read lba on gc path

2018-04-18 Thread Javier González
> On 17 Apr 2018, at 05.03, Matias Bjørling <m...@lightnvm.io> wrote: > > On 4/16/18 12:25 PM, Javier González wrote: >> Check that the lba stored in the LBA metadata is correct in the GC path >> too. This requires a new helper function to check random reads in the &g

Re: [PATCH 03/11] lightnvm: pblk: check read lba on gc path

2018-04-18 Thread Javier González
> On 17 Apr 2018, at 05.03, Matias Bjørling wrote: > > On 4/16/18 12:25 PM, Javier González wrote: >> Check that the lba stored in the LBA metadata is correct in the GC path >> too. This requires a new helper function to check random reads in the >> vector read. >&g

Re: [PATCH 08/11] lightnvm: pblk: remove unnecessary argument

2018-04-18 Thread Javier González
Javier > On 17 Apr 2018, at 05.12, Matias Bjørling <m...@lightnvm.io> wrote: > > On 4/16/18 12:25 PM, Javier González wrote: >> Remove unnecessary argument on pblk_line_free() > > Why was the argument no longer needed? You can see it is not used... It a straig

Re: [PATCH 08/11] lightnvm: pblk: remove unnecessary argument

2018-04-18 Thread Javier González
Javier > On 17 Apr 2018, at 05.12, Matias Bjørling wrote: > > On 4/16/18 12:25 PM, Javier González wrote: >> Remove unnecessary argument on pblk_line_free() > > Why was the argument no longer needed? You can see it is not used... It a straightforward clean up. J

[PATCH 01/11] lightnvm: pblk: fail gracefully on line alloc. failure

2018-04-16 Thread Javier González
In the event of a line failing to allocate, fail gracefully and stop the pipeline to avoid more write failing in the same place. Signed-off-by: Javier González <jav...@cnexlabs.com> --- drivers/lightnvm/pblk-init.c | 5 + drivers/lightnvm/pblk-map.c

[PATCH 01/11] lightnvm: pblk: fail gracefully on line alloc. failure

2018-04-16 Thread Javier González
In the event of a line failing to allocate, fail gracefully and stop the pipeline to avoid more write failing in the same place. Signed-off-by: Javier González --- drivers/lightnvm/pblk-init.c | 5 + drivers/lightnvm/pblk-map.c | 33 - 2 files changed, 29

[PATCH 03/11] lightnvm: pblk: check read lba on gc path

2018-04-16 Thread Javier González
Check that the lba stored in the LBA metadata is correct in the GC path too. This requires a new helper function to check random reads in the vector read. Signed-off-by: Javier González <jav...@cnexlabs.com> --- drivers/lightnvm/pblk-read.c | 39 +--

[PATCH 00/11] lightnvm: pblk: small fixes

2018-04-16 Thread Javier González
A bunch of small fixes and extra checks for pblk. Non is critical, though ("lightnvm: pblk: check for chunk size before allocating it") might be nice to get into 4.17 as it is a fix for the 2.0 pblk patches. Javier Javier González (11): lightnvm: pblk: fail gracefully on line allo

[PATCH 03/11] lightnvm: pblk: check read lba on gc path

2018-04-16 Thread Javier González
Check that the lba stored in the LBA metadata is correct in the GC path too. This requires a new helper function to check random reads in the vector read. Signed-off-by: Javier González --- drivers/lightnvm/pblk-read.c | 39 +-- 1 file changed, 33 insertions

[PATCH 00/11] lightnvm: pblk: small fixes

2018-04-16 Thread Javier González
A bunch of small fixes and extra checks for pblk. Non is critical, though ("lightnvm: pblk: check for chunk size before allocating it") might be nice to get into 4.17 as it is a fix for the 2.0 pblk patches. Javier Javier González (11): lightnvm: pblk: fail gracefully on line allo

[PATCH 09/11] lightnvm: pblk: check for chunk size before allocating it

2018-04-16 Thread Javier González
Do the check for the chunk state after making sure that the chunk type is supported. Fixes: 32ef9412c114 ("lightnvm: pblk: implement get log report chunk") Signed-off-by: Javier González <jav...@cnexlabs.com> --- drivers/lightnvm/pblk-init.c | 6 +++--- 1 file changed, 3

  1   2   3   4   5   6   7   8   9   10   >