From: willy@linux.intel.com (Matthew Wilcox)
Subject: [PATCHv2] NVMe: Mismatched host/device page size support
Date: Sat, 28 Jun 2014 09:59:17 -0400 [thread overview]
Message-ID: <20140628135917.GV12025@linux.intel.com> (raw)
In-Reply-To: <1403544841-32685-1-git-send-email-keith.busch@intel.com>
On Mon, Jun 23, 2014@11:34:01AM -0600, Keith Busch wrote:
> @@ -511,13 +512,13 @@ int nvme_setup_prps(struct nvme_dev *dev, struct nvme_iod *iod, int total_len,
> if (!prp_list) {
> iod->first_dma = dma_addr;
> iod->npages = -1;
> - return (total_len - length) + PAGE_SIZE;
> + return (total_len - length) + page_size;
> }
> list[0] = prp_list;
> iod->first_dma = prp_dma;
> i = 0;
> for (;;) {
> - if (i == PAGE_SIZE / 8) {
> + if (i == page_size >> 3) {
> __le64 *old_prp_list = prp_list;
> prp_list = dma_pool_alloc(pool, gfp, &prp_dma);
> if (!prp_list)
Something weird happened to this hunk. There's three lines missing
between lines 3 & 4 of it. I think I fixed it up right, but please check.
prev parent reply other threads:[~2014-06-28 13:59 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-23 17:34 [PATCHv2] NVMe: Mismatched host/device page size support Keith Busch
2014-06-28 13:59 ` Matthew Wilcox [this message]
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=20140628135917.GV12025@linux.intel.com \
--to=willy@linux.intel.com \
/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: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox