Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1303570

Re: [PATCH 1/2] lightnvm: let rrpc block know its rrpc lun

From Matias Bjørling <mb@lightnvm.io>
Newsgroups linux.kernel
Subject Re: [PATCH 1/2] lightnvm: let rrpc block know its rrpc lun
Date 2016-01-07 14:00 +0100
Message-ID <qOikz-8ew-19@gated-at.bofh.it> (permalink)
References <qOhy9-7Vb-11@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 01/07/2016 01:03 PM, Javier González wrote:
> Currently a rrpc block only points to the nvm_lun it belongs to.
> Maintaining a reference to the rrpc lun allows to manage rrpc specific
> behavior between an rrpc block and rrpc lun.
>
> Signed-off-by: Javier González <javier@cnexlabs.com>
> ---
>   drivers/lightnvm/rrpc.c | 1 +
>   drivers/lightnvm/rrpc.h | 1 +
>   2 files changed, 2 insertions(+)
>
> diff --git a/drivers/lightnvm/rrpc.c b/drivers/lightnvm/rrpc.c
> index ec7aacf..1bea346 100644
> --- a/drivers/lightnvm/rrpc.c
> +++ b/drivers/lightnvm/rrpc.c
> @@ -1150,6 +1150,7 @@ static int rrpc_luns_init(struct rrpc *rrpc, int lun_begin, int lun_end)
>   			struct nvm_block *blk = &lun->blocks[j];
>
>   			rblk->parent = blk;
> +			rblk->rlun = rlun;
>   			INIT_LIST_HEAD(&rblk->prio);
>   			spin_lock_init(&rblk->lock);
>   		}
> diff --git a/drivers/lightnvm/rrpc.h b/drivers/lightnvm/rrpc.h
> index a9696a0..7c5fa4d 100644
> --- a/drivers/lightnvm/rrpc.h
> +++ b/drivers/lightnvm/rrpc.h
> @@ -54,6 +54,7 @@ struct rrpc_rq {
>
>   struct rrpc_block {
>   	struct nvm_block *parent;
> +	struct rrpc_lun *rlun;
>   	struct list_head prio;
>
>   #define MAX_INVALID_PAGES_STORAGE 8
>

Thanks, applied for 4.5. I've slightly changed the patch text.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH 1/2] lightnvm: let rrpc block know its rrpc lun Javier González <javier@javigon.com> - 2016-01-07 13:10 +0100
  [PATCH 2/2] lightnvm: manage open and closed blocks separately Javier González <javier@javigon.com> - 2016-01-07 13:10 +0100
  Re: [PATCH 1/2] lightnvm: let rrpc block know its rrpc lun Matias Bjørling <mb@lightnvm.io> - 2016-01-07 14:00 +0100

csiph-web