From: Bob Liu <bob.liu@oracle.com>
To: linux-kernel@vger.kernel.org
Cc: jgross@suse.com, xen-devel@lists.xenproject.org,
Bob Liu <bob.liu@oracle.com>,
roger.pau@citrix.com
Subject: [PATCH 1/3] xen-blkfront: fix places not updated after introducing 64KB page granularity
Date: Fri, 15 Jul 2016 17:31:47 +0800 [thread overview]
Message-ID: <1468575109-12209-1-git-send-email-bob.liu@oracle.com> (raw)
Two places didn't get updated when 64KB page granularity was introduced, this
patch fix them.
Signed-off-by: Bob Liu <bob.liu@oracle.com>
---
drivers/block/xen-blkfront.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/block/xen-blkfront.c b/drivers/block/xen-blkfront.c
index fcc5b4e..032fc94 100644
--- a/drivers/block/xen-blkfront.c
+++ b/drivers/block/xen-blkfront.c
@@ -1321,7 +1321,7 @@ free_shadow:
rinfo->ring_ref[i] = GRANT_INVALID_REF;
}
}
- free_pages((unsigned long)rinfo->ring.sring, get_order(info->nr_ring_pages * PAGE_SIZE));
+ free_pages((unsigned long)rinfo->ring.sring, get_order(info->nr_ring_pages * XEN_PAGE_SIZE));
rinfo->ring.sring = NULL;
if (rinfo->irq)
@@ -2013,7 +2013,7 @@ static int blkif_recover(struct blkfront_info *info)
blkfront_gather_backend_features(info);
segs = info->max_indirect_segments ? : BLKIF_MAX_SEGMENTS_PER_REQUEST;
- blk_queue_max_segments(info->rq, segs);
+ blk_queue_max_segments(info->rq, segs / GRANTS_PER_PSEG);
for (r_index = 0; r_index < info->nr_rings; r_index++) {
struct blkfront_ring_info *rinfo = &info->rinfo[r_index];
--
2.7.4
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel
next reply other threads:[~2016-07-15 9:32 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-07-15 9:31 Bob Liu [this message]
2016-07-15 9:31 ` [PATCH 2/3] xen-blkfront: introduce blkif_set_queue_limits() Bob Liu
2016-07-15 9:31 ` [PATCH 3/3] xen-blkfront: dynamic configuration of per-vbd resources Bob Liu
2016-07-21 8:06 ` [PATCH 1/3] xen-blkfront: fix places not updated after introducing 64KB page granularity Roger Pau Monné
[not found] ` <1468575109-12209-2-git-send-email-bob.liu@oracle.com>
2016-07-21 8:29 ` [PATCH 2/3] xen-blkfront: introduce blkif_set_queue_limits() Roger Pau Monné
[not found] ` <20160721082913.ahsy5a63ymfoymqv@mac>
2016-07-21 9:44 ` Bob Liu
[not found] ` <1468575109-12209-3-git-send-email-bob.liu@oracle.com>
2016-07-21 8:57 ` [PATCH 3/3] xen-blkfront: dynamic configuration of per-vbd resources Roger Pau Monné
[not found] ` <20160721085756.ps4rtdns4xh35yii@mac>
2016-07-21 10:08 ` Bob Liu
[not found] ` <57909F05.9030809@oracle.com>
2016-07-22 7:45 ` Roger Pau Monné
[not found] ` <20160722074506.l5nfcmqg3jzsmxzi@mac>
2016-07-22 8:17 ` Bob Liu
[not found] ` <5791D6AC.1070604@oracle.com>
2016-07-22 9:34 ` Roger Pau Monné
[not found] ` <20160722093409.iwcmlubhou4rjjop@mac>
2016-07-22 9:43 ` Bob Liu
[not found] ` <5791EAC4.2030309@oracle.com>
2016-07-22 11:45 ` Roger Pau Monné
[not found] ` <20160722114538.7un36zw7mrvcueob@mac>
2016-07-22 22:18 ` Bob Liu
[not found] ` <57929BAF.4030304@oracle.com>
2016-07-25 9:20 ` Roger Pau Monné
[not found] ` <20160725092002.madb7j6ryn4jcoho@mac>
2016-07-25 10:29 ` Bob Liu
[not found] ` <5795EA02.2090200@oracle.com>
2016-07-25 10:53 ` Roger Pau Monné
[not found] ` <20160725105314.aatqpi4rxaxntt5b@mac>
2016-07-25 11:08 ` Bob Liu
[not found] ` <5795F334.4040106@oracle.com>
2016-07-25 12:11 ` Roger Pau Monné
[not found] ` <20160725121121.6ym4wjjgqyp7akgx@mac>
2016-07-25 12:25 ` Bob Liu
-- strict thread matches above, loose matches on Subject: below --
2016-07-26 5:19 [PATCH 1/3] xen-blkfront: fix places not updated after introducing 64KB page granularity Bob Liu
[not found] <1469510377-15131-1-git-send-email-bob.liu@oracle.com>
2016-07-28 1:19 ` Konrad Rzeszutek Wilk
[not found] ` <20160728011942.GB3165@char.us.oracle.com>
2016-07-28 9:03 ` Bob Liu
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=1468575109-12209-1-git-send-email-bob.liu@oracle.com \
--to=bob.liu@oracle.com \
--cc=jgross@suse.com \
--cc=linux-kernel@vger.kernel.org \
--cc=roger.pau@citrix.com \
--cc=xen-devel@lists.xenproject.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: 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;
as well as URLs for NNTP newsgroup(s).