From: "Roger Pau Monné" <roger.pau@citrix.com>
To: flyingpenghao@gmail.com
Cc: xen-devel@lists.xenproject.org, Peng Hao <flyingpeng@tencent.com>
Subject: Re: [PATCH] xen/blkback: use kmap_local_page()
Date: Wed, 6 Mar 2024 09:41:53 +0100 [thread overview]
Message-ID: <ZegsUUDfgNg3mzEw@macbook> (raw)
In-Reply-To: <20240306051548.90954-1-flyingpeng@tencent.com>
On Wed, Mar 06, 2024 at 01:15:48PM +0800, flyingpenghao@gmail.com wrote:
> From: Peng Hao <flyingpeng@tencent.com>
>
> From: Peng Hao <flyingpeng@tencent.com>
>
> Use kmap_local_page() instead of kmap_atomic() which has been
> deprecated.
>
> Signed-off-by: Peng Hao <flyingpeng@tencent.com>
> ---
> drivers/block/xen-blkback/blkback.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/block/xen-blkback/blkback.c b/drivers/block/xen-blkback/blkback.c
> index 4defd7f387c7..cce534f43292 100644
> --- a/drivers/block/xen-blkback/blkback.c
> +++ b/drivers/block/xen-blkback/blkback.c
> @@ -937,8 +937,8 @@ static int xen_blkbk_parse_indirect(struct blkif_request *req,
> if ((n % SEGS_PER_INDIRECT_FRAME) == 0) {
> /* Map indirect segments */
> if (segments)
> - kunmap_atomic(segments);
> - segments = kmap_atomic(pages[n/SEGS_PER_INDIRECT_FRAME]->page);
> + kunmap_local(segments);
> + segments = kmap_local_page(pages[n/SEGS_PER_INDIRECT_FRAME]->page);
Don't you need to also switch to kunmap_local() then instead of
kunmap_atomic()?
Thanks, Roger.
next prev parent reply other threads:[~2024-03-06 8:42 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-06 5:15 [PATCH] xen/blkback: use kmap_local_page() flyingpenghao
2024-03-06 8:41 ` Roger Pau Monné [this message]
2024-03-14 13:28 ` Hao Peng
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=ZegsUUDfgNg3mzEw@macbook \
--to=roger.pau@citrix.com \
--cc=flyingpeng@tencent.com \
--cc=flyingpenghao@gmail.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 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.