All of lore.kernel.org
 help / color / mirror / Atom feed
* [Patch] fix
@ 2009-03-23 14:53 Martin Peschke
  2009-03-23 18:40 ` Jens Axboe
  0 siblings, 1 reply; 4+ messages in thread
From: Martin Peschke @ 2009-03-23 14:53 UTC (permalink / raw)
  To: linux-btrace

Jens,

Tom fixed my "boken trace magic" issue. Please apply.

Thanks,
Martin


From: Tom Zanussi <tzanussi@gmail.com>

Blktrace failed to lock reader threads on the cpu used by the corresponding
writer. This resulted in stale data being consumed when blktrace accidently
read at a position that was being written to at the same time. This issue
surfaced as "bad trace magic" warnings emitted by blktrace tools.

The problem occured on an SMP System z machine. The patch fixes the issue.

Signed-off-by: Martin Peschke <mpeschke@linux.vnet.ibm.com>

---
 blktrace.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/blktrace.c
+++ b/blktrace.c
@@ -610,7 +610,7 @@ static int lock_on_cpu(int cpu)
 
 	CPU_ZERO(&cpu_mask);
 	CPU_SET(cpu, &cpu_mask);
-	if (sched_setaffinity(getpid(), sizeof(cpu_mask), &cpu_mask) < 0)
+	if (sched_setaffinity(0, sizeof(cpu_mask), &cpu_mask) < 0)
 		return errno;
 
 	return 0;



^ permalink raw reply	[flat|nested] 4+ messages in thread
* Re: [PATCH v8 6/6] iio: adc: ad7192: Add AD7194 support
@ 2024-05-20 12:28 Andy Shevchenko
  2024-05-22  9:50 ` [PATCH] fix Alisa-Dariana Roman
  0 siblings, 1 reply; 4+ messages in thread
From: Andy Shevchenko @ 2024-05-20 12:28 UTC (permalink / raw)
  To: Jonathan Cameron
  Cc: Alisa-Dariana Roman, Jonathan Cameron, michael.hennerich,
	linux-iio, devicetree, linux-kernel, lars, robh,
	krzysztof.kozlowski+dt, conor+dt, lgirdwood, broonie, nuno.sa,
	marcelo.schmitt, bigunclemax, dlechner, okan.sahin, fr0st61te,
	alisa.roman, marcus.folkesson, schnelle, liambeguin

On Mon, May 20, 2024 at 01:20:30PM +0100, Jonathan Cameron wrote:
> On Sun, 19 May 2024 22:37:58 +0300
> Alisa-Dariana Roman <alisadariana@gmail.com> wrote:
> > On 19.05.2024 21:03, Jonathan Cameron wrote:

...

> > +static bool ad7194_validate_ain_channel(struct device *dev, u32 ain)
> > +{
> > +	return in_range(ain, AD7194_CH_AIN_START, AD7194_CH_AIN_NR);
> > +}
> > And the negation got lost here.
> 
> Ouch :( 

And negation most likely should be on the caller's side.

-- 
With Best Regards,
Andy Shevchenko



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-05-25 16:35 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-23 14:53 [Patch] fix Martin Peschke
2009-03-23 18:40 ` Jens Axboe
  -- strict thread matches above, loose matches on Subject: below --
2024-05-20 12:28 [PATCH v8 6/6] iio: adc: ad7192: Add AD7194 support Andy Shevchenko
2024-05-22  9:50 ` [PATCH] fix Alisa-Dariana Roman
2024-05-25 16:35   ` Jonathan Cameron

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.