summaryrefslogtreecommitdiff
path: root/tools/lib/lockdep/tests/ABBCCDDA.c
blob: 33620e268f85f3b8d8a233d6dc91ed91e6117a62 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include <liblockdep/mutex.h>
#include "common.h"

void main(void)
{
	pthread_mutex_t a, b, c, d;

	pthread_mutex_init(&a, NULL);
	pthread_mutex_init(&b, NULL);
	pthread_mutex_init(&c, NULL);
	pthread_mutex_init(&d, NULL);

	LOCK_UNLOCK_2(a, b);
	LOCK_UNLOCK_2(b, c);
	LOCK_UNLOCK_2(c, d);
	LOCK_UNLOCK_2(d, a);
}
-0800 committerLinus Torvalds <torvalds@linux-foundation.org>2017-02-01 09:22:08 -0800 commit35609502ac5dea2b149ec0368791d9c0e246bd65 (patch) tree6819f6bc5b8c3585b7a19cc0d8d25d703a1bc57c /drivers/usb/host/oxu210hp-hcd.c parentc325b3533730016ca5cdaf902d62550b4243fe43 (diff)parent91539eb1fda2d530d3b268eef542c5414e54bf1a (diff)
Merge tag 'dmaengine-fix-4.10-rc7' of git://git.infradead.org/users/vkoul/slave-dma
Pull dmaengine fixes from Vinod Koul: "A couple of fixes showed up late in the cycle so sending them up and sending early in the week and not on Friday :). They fix a double lock in pl330 driver and runtime pm fixes for cppi driver" * tag 'dmaengine-fix-4.10-rc7' of git://git.infradead.org/users/vkoul/slave-dma: dmaengine: pl330: fix double lock dmaengine: cppi41: Clean up pointless warnings dmaengine: cppi41: Fix oops in cppi41_runtime_resume dmaengine: cppi41: Fix runtime PM timeouts with USB mass storage
Diffstat (limited to 'drivers/usb/host/oxu210hp-hcd.c')