From: Haren Myneni <haren@linux.ibm.com>
To: Nathan Lynch <nathanl@linux.ibm.com>,
mpe@ellerman.id.au, linuxppc-dev@lists.ozlabs.org,
npiggin@gmail.com
Subject: Re: [PATCH v2 1/4] powerpc/pseries/vas: Define global hv_cop_caps struct
Date: Tue, 08 Feb 2022 08:00:56 -0800 [thread overview]
Message-ID: <d4bbe77055e6d8cf79a83c7d9bf5e866f7e22939.camel@linux.ibm.com> (raw)
In-Reply-To: <87iltps6jx.fsf@linux.ibm.com>
On Tue, 2022-02-08 at 09:48 -0600, Nathan Lynch wrote:
> Haren Myneni <haren@linux.ibm.com> writes:
> > The coprocessor capabilities struct is used to get default and
> > QoS capabilities from the hypervisor during init, DLPAR event and
> > migration. So instead of allocating this struct for each event,
> > define global struct and reuse it, especially eliminate memory
> > allocation failure during migration.
>
> Which allows the migration code to avoid adding an error path. I
> could
> go either way, but this approach seems fine to me assuming all users
> of
> the global object are guarded by an appropriate lock.
>
> Acked-by: Nathan Lynch <nathanl@linux.ibm.com>
>
Thanks for your suggestion. I will change the commit message as you
suggested to make it clear. yes, this struct is accessed with mutex.
Thanks
Haren
next prev parent reply other threads:[~2022-02-08 16:01 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-02-06 2:25 [PATCH v2 0/4] powerpc/pseries/vas: VAS/NXGZIP support with LPM Haren Myneni
2022-02-06 2:27 ` [PATCH v2 1/4] powerpc/pseries/vas: Define global hv_cop_caps struct Haren Myneni
2022-02-08 15:48 ` Nathan Lynch
2022-02-08 16:00 ` Haren Myneni [this message]
2022-02-06 2:28 ` [PATCH v2 2/4] powerpc/pseries/vas: Modify reconfig open/close functions for migration Haren Myneni
2022-02-06 2:28 ` [PATCH v2 3/4] powerpc/pseries/vas: Add VAS migration handler Haren Myneni
2022-02-06 2:29 ` [PATCH v2 4/4] powerpc/pseries/vas: Disable window open during migration Haren Myneni
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=d4bbe77055e6d8cf79a83c7d9bf5e866f7e22939.camel@linux.ibm.com \
--to=haren@linux.ibm.com \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=mpe@ellerman.id.au \
--cc=nathanl@linux.ibm.com \
--cc=npiggin@gmail.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;
as well as URLs for NNTP newsgroup(s).