From: "Matias Bjørling" <m@bjorling.me> To: hch@infradead.org, axboe@fb.com, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-nvme@lists.infradead.org Cc: javier@lightnvm.io, Stephen.Bates@pmcs.com, keith.busch@intel.com, "Matias Bjørling" <m@bjorling.me> Subject: [PATCH v4 4/8] bio: Introduce LightNVM payload Date: Fri, 5 Jun 2015 14:54:26 +0200 [thread overview] Message-ID: <1433508870-28251-5-git-send-email-m@bjorling.me> (raw) In-Reply-To: <1433508870-28251-1-git-send-email-m@bjorling.me> LightNVM integrates on both sides of the block layer. The lower layer implements mapping of logical to physical addressing, while the layer above can string together multiple LightNVM devices and expose them as a single block device. Having multiple devices underneath requires a way to resolve where the IO came from when submitted through the block layer. Extending bio with a LightNVM payload solves this problem. Signed-off-by: Matias Bjørling <m@bjorling.me> --- include/linux/bio.h | 9 +++++++++ include/linux/blk_types.h | 4 +++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/include/linux/bio.h b/include/linux/bio.h index f0291cf..1fe490e 100644 --- a/include/linux/bio.h +++ b/include/linux/bio.h @@ -368,6 +368,15 @@ static inline void bip_set_seed(struct bio_integrity_payload *bip, #endif /* CONFIG_BLK_DEV_INTEGRITY */ +#if defined(CONFIG_NVM) + +/* bio open-channel ssd payload */ +struct bio_nvm_payload { + void *private; +}; + +#endif /* CONFIG_NVM */ + extern void bio_trim(struct bio *bio, int offset, int size); extern struct bio *bio_split(struct bio *bio, int sectors, gfp_t gfp, struct bio_set *bs); diff --git a/include/linux/blk_types.h b/include/linux/blk_types.h index 45a6be8..41d9ba1 100644 --- a/include/linux/blk_types.h +++ b/include/linux/blk_types.h @@ -83,7 +83,9 @@ struct bio { struct bio_integrity_payload *bi_integrity; /* data integrity */ #endif }; - +#if defined(CONFIG_NVM) + struct bio_nvm_payload *bi_nvm; /* open-channel ssd backend */ +#endif unsigned short bi_vcnt; /* how many bio_vec's */ /* -- 2.1.4
WARNING: multiple messages have this Message-ID (diff)
From: m@bjorling.me (Matias Bjørling) Subject: [PATCH v4 4/8] bio: Introduce LightNVM payload Date: Fri, 5 Jun 2015 14:54:26 +0200 [thread overview] Message-ID: <1433508870-28251-5-git-send-email-m@bjorling.me> (raw) In-Reply-To: <1433508870-28251-1-git-send-email-m@bjorling.me> LightNVM integrates on both sides of the block layer. The lower layer implements mapping of logical to physical addressing, while the layer above can string together multiple LightNVM devices and expose them as a single block device. Having multiple devices underneath requires a way to resolve where the IO came from when submitted through the block layer. Extending bio with a LightNVM payload solves this problem. Signed-off-by: Matias Bj?rling <m at bjorling.me> --- include/linux/bio.h | 9 +++++++++ include/linux/blk_types.h | 4 +++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/include/linux/bio.h b/include/linux/bio.h index f0291cf..1fe490e 100644 --- a/include/linux/bio.h +++ b/include/linux/bio.h @@ -368,6 +368,15 @@ static inline void bip_set_seed(struct bio_integrity_payload *bip, #endif /* CONFIG_BLK_DEV_INTEGRITY */ +#if defined(CONFIG_NVM) + +/* bio open-channel ssd payload */ +struct bio_nvm_payload { + void *private; +}; + +#endif /* CONFIG_NVM */ + extern void bio_trim(struct bio *bio, int offset, int size); extern struct bio *bio_split(struct bio *bio, int sectors, gfp_t gfp, struct bio_set *bs); diff --git a/include/linux/blk_types.h b/include/linux/blk_types.h index 45a6be8..41d9ba1 100644 --- a/include/linux/blk_types.h +++ b/include/linux/blk_types.h @@ -83,7 +83,9 @@ struct bio { struct bio_integrity_payload *bi_integrity; /* data integrity */ #endif }; - +#if defined(CONFIG_NVM) + struct bio_nvm_payload *bi_nvm; /* open-channel ssd backend */ +#endif unsigned short bi_vcnt; /* how many bio_vec's */ /* -- 2.1.4
next prev parent reply other threads:[~2015-06-05 12:56 UTC|newest] Thread overview: 47+ messages / expand[flat|nested] mbox.gz Atom feed top 2015-06-05 12:54 [PATCH v4 0/8] Support for Open-Channel SSDs Matias Bjørling 2015-06-05 12:54 ` Matias Bjørling 2015-06-05 12:54 ` Matias Bjørling 2015-06-05 12:54 ` [PATCH v4 1/8] nvme: add special param for nvme_submit_sync_cmd Matias Bjørling 2015-06-05 12:54 ` Matias Bjørling 2015-06-05 12:54 ` [PATCH v4 2/8] nvme: don't overwrite req->cmd_flags on sync cmd Matias Bjørling 2015-06-05 12:54 ` Matias Bjørling 2015-06-09 7:31 ` Christoph Hellwig 2015-06-09 7:31 ` Christoph Hellwig 2015-06-05 12:54 ` [PATCH v4 3/8] null_blk: wrong capacity when bs is not 512 bytes Matias Bjørling 2015-06-05 12:54 ` Matias Bjørling 2015-06-05 12:54 ` Matias Bjørling [this message] 2015-06-05 12:54 ` [PATCH v4 4/8] bio: Introduce LightNVM payload Matias Bjørling 2015-06-05 18:17 ` Matias Bjorling 2015-06-05 18:17 ` Matias Bjorling 2015-07-06 13:16 ` Pavel Machek 2015-07-06 13:16 ` Pavel Machek 2015-06-05 12:54 ` [PATCH v4 5/8] lightnvm: Support for Open-Channel SSDs Matias Bjørling 2015-06-05 12:54 ` Matias Bjørling 2015-06-05 12:54 ` [PATCH v4 6/8] lightnvm: RRPC target Matias Bjørling 2015-06-05 12:54 ` Matias Bjørling 2015-06-05 12:54 ` Matias Bjørling 2015-06-05 12:54 ` [PATCH v4 7/8] null_blk: LightNVM support Matias Bjørling 2015-06-05 12:54 ` Matias Bjørling 2015-06-05 12:54 ` [PATCH v4 8/8] nvme: " Matias Bjørling 2015-06-05 12:54 ` Matias Bjørling 2015-06-08 14:48 ` [PATCH v4 0/8] Support for Open-Channel SSDs Stephen Bates 2015-06-08 14:48 ` Stephen Bates 2015-06-08 14:48 ` Stephen Bates 2015-06-09 7:46 ` Christoph Hellwig 2015-06-09 7:46 ` Christoph Hellwig 2015-06-10 18:11 ` Matias Bjorling 2015-06-10 18:11 ` Matias Bjorling 2015-06-11 10:29 ` Christoph Hellwig 2015-06-11 10:29 ` Christoph Hellwig 2015-06-13 16:17 ` Matias Bjorling 2015-06-13 16:17 ` Matias Bjorling 2015-06-17 13:59 ` Christoph Hellwig 2015-06-17 13:59 ` Christoph Hellwig 2015-06-17 18:04 ` Matias Bjorling 2015-06-17 18:04 ` Matias Bjorling 2015-07-16 12:23 ` Matias Bjørling 2015-07-16 12:23 ` Matias Bjørling 2015-07-16 12:46 ` Christoph Hellwig 2015-07-16 12:46 ` Christoph Hellwig 2015-07-16 13:06 ` Matias Bjørling 2015-07-16 13:06 ` Matias Bjørling
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=1433508870-28251-5-git-send-email-m@bjorling.me \ --to=m@bjorling.me \ --cc=Stephen.Bates@pmcs.com \ --cc=axboe@fb.com \ --cc=hch@infradead.org \ --cc=javier@lightnvm.io \ --cc=keith.busch@intel.com \ --cc=linux-fsdevel@vger.kernel.org \ --cc=linux-kernel@vger.kernel.org \ --cc=linux-nvme@lists.infradead.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.