* [PATCH] cxl: Don't ignore add_process_element result when attaching context
@ 2015-07-29 4:07 Daniel Axtens
2015-07-29 4:25 ` Michael Ellerman
2015-08-10 9:27 ` Michael Ellerman
0 siblings, 2 replies; 5+ messages in thread
From: Daniel Axtens @ 2015-07-29 4:07 UTC (permalink / raw)
To: linuxppc-dev; +Cc: mpe, benh, mikey, imunsie, Daniel Axtens
Previously, when attaching a context in dedicated mode, we ignored
the result of add_process_element, which could potentially fail.
If add_process_element returns and error, pass it back to the caller.
Signed-off-by: Daniel Axtens <dja@axtens.net>
---
I'm not sure if this is worth sending to stable: it doesn't fix
any actual bug, it just lets us know earlier if we've failed.
However, if mpe, Mikey or Ian feel like it should go to stable I
have no objection to that either.
---
drivers/misc/cxl/native.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/misc/cxl/native.c b/drivers/misc/cxl/native.c
index debd97147b58..22c06d91faa8 100644
--- a/drivers/misc/cxl/native.c
+++ b/drivers/misc/cxl/native.c
@@ -551,9 +551,7 @@ static int attach_afu_directed(struct cxl_context *ctx, u64 wed, u64 amr)
if ((result = cxl_afu_check_and_enable(ctx->afu)))
return result;
- add_process_element(ctx);
-
- return 0;
+ return add_process_element(ctx);
}
static int deactivate_afu_directed(struct cxl_afu *afu)
--
2.1.4
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] cxl: Don't ignore add_process_element result when attaching context
2015-07-29 4:07 [PATCH] cxl: Don't ignore add_process_element result when attaching context Daniel Axtens
@ 2015-07-29 4:25 ` Michael Ellerman
2015-07-29 4:40 ` Daniel Axtens
2015-08-10 9:27 ` Michael Ellerman
1 sibling, 1 reply; 5+ messages in thread
From: Michael Ellerman @ 2015-07-29 4:25 UTC (permalink / raw)
To: Daniel Axtens; +Cc: linuxppc-dev, benh, mikey, imunsie
On Wed, 2015-07-29 at 14:07 +1000, Daniel Axtens wrote:
> Previously, when attaching a context in dedicated mode, we ignored
Previously? You mean currently? Now is before this patch is applied.
> the result of add_process_element, which could potentially fail.
>
> If add_process_element returns and error, pass it back to the caller.
^
I can fix.
> Signed-off-by: Daniel Axtens <dja@axtens.net>
>
> ---
>
> I'm not sure if this is worth sending to stable: it doesn't fix
> any actual bug, it just lets us know earlier if we've failed.
>
> However, if mpe, Mikey or Ian feel like it should go to stable I
> have no objection to that either.
stable_kernel_rules.txt says:
- It must fix a real bug that bothers people (not a, "This could be a
problem..." type thing).
So I think not. But rules are flexible so I can be convinced otherwise if
anyone has a good argument.
cheers
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] cxl: Don't ignore add_process_element result when attaching context
2015-07-29 4:25 ` Michael Ellerman
@ 2015-07-29 4:40 ` Daniel Axtens
2015-08-05 7:59 ` Michael Neuling
0 siblings, 1 reply; 5+ messages in thread
From: Daniel Axtens @ 2015-07-29 4:40 UTC (permalink / raw)
To: Michael Ellerman; +Cc: linuxppc-dev, benh, mikey, imunsie
[-- Attachment #1: Type: text/plain, Size: 726 bytes --]
On Wed, 2015-07-29 at 14:25 +1000, Michael Ellerman wrote:
> On Wed, 2015-07-29 at 14:07 +1000, Daniel Axtens wrote:
> > Previously, when attaching a context in dedicated mode, we ignored
>
> Previously? You mean currently? Now is before this patch is applied.
I do mean currently. Apologies for the temporal confusion :)
>
> > the result of add_process_element, which could potentially fail.
> >
> > If add_process_element returns and error, pass it back to the caller.
> ^
>
> I can fix.
>
Many thanks: it's good to know that my spelling mistakes will only be
immortalised in the list archives rather than in the kernel's git
history. :p
--
Regards,
Daniel
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 860 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] cxl: Don't ignore add_process_element result when attaching context
2015-07-29 4:40 ` Daniel Axtens
@ 2015-08-05 7:59 ` Michael Neuling
0 siblings, 0 replies; 5+ messages in thread
From: Michael Neuling @ 2015-08-05 7:59 UTC (permalink / raw)
To: Daniel Axtens; +Cc: Michael Ellerman, linuxppc-dev, benh, imunsie
On Wed, 2015-07-29 at 14:40 +1000, Daniel Axtens wrote:
> On Wed, 2015-07-29 at 14:25 +1000, Michael Ellerman wrote:
> > On Wed, 2015-07-29 at 14:07 +1000, Daniel Axtens wrote:
> > > Previously, when attaching a context in dedicated mode, we ignored
> >=20
> > Previously? You mean currently? Now is before this patch is applied.
> I do mean currently. Apologies for the temporal confusion :)
>=20
> >=20
> > > the result of add_process_element, which could potentially fail.
> > >=20
> > > If add_process_element returns and error, pass it back to the caller.
> > ^
> >=20
> > I can fix.
> >=20
> Many thanks: it's good to know that my spelling mistakes will only be
> immortalised in the list archives rather than in the kernel's git
> history. :p
Not to mention the double negative in the patch subject! "Don't
ignore"... come on!?!? :-P
Mikey
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: cxl: Don't ignore add_process_element result when attaching context
2015-07-29 4:07 [PATCH] cxl: Don't ignore add_process_element result when attaching context Daniel Axtens
2015-07-29 4:25 ` Michael Ellerman
@ 2015-08-10 9:27 ` Michael Ellerman
1 sibling, 0 replies; 5+ messages in thread
From: Michael Ellerman @ 2015-08-10 9:27 UTC (permalink / raw)
To: Daniel Axtens, linuxppc-dev; +Cc: mikey, Daniel Axtens, imunsie
On Wed, 2015-29-07 at 04:07:22 UTC, Daniel Axtens wrote:
> Previously, when attaching a context in dedicated mode, we ignored
> the result of add_process_element, which could potentially fail.
>
> If add_process_element returns and error, pass it back to the caller.
>
> Signed-off-by: Daniel Axtens <dja@axtens.net>
Applied to powerpc next, thanks.
https://git.kernel.org/powerpc/c/368857c16c595eb7537c
cheers
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2015-08-10 9:27 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-29 4:07 [PATCH] cxl: Don't ignore add_process_element result when attaching context Daniel Axtens
2015-07-29 4:25 ` Michael Ellerman
2015-07-29 4:40 ` Daniel Axtens
2015-08-05 7:59 ` Michael Neuling
2015-08-10 9:27 ` Michael Ellerman
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).