<feed xmlns='http://www.w3.org/2005/Atom'>
<title>pm24.git/kernel/futex, branch v5.16</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.
</subtitle>
<id>https://git.kobert.dev/pm24.git/atom?h=v5.16</id>
<link rel='self' href='https://git.kobert.dev/pm24.git/atom?h=v5.16'/>
<link rel='alternate' type='text/html' href='https://git.kobert.dev/pm24.git/'/>
<updated>2021-10-19T15:27:05Z</updated>
<entry>
<title>futex: Fix PREEMPT_RT build</title>
<updated>2021-10-19T15:27:05Z</updated>
<author>
<name>Peter Zijlstra</name>
<email>peterz@infradead.org</email>
</author>
<published>2021-10-15T10:05:59Z</published>
<link rel='alternate' type='text/html' href='https://git.kobert.dev/pm24.git/commit/?id=4d38167330910ddb15b1add5b5cef835677a29fd'/>
<id>urn:sha1:4d38167330910ddb15b1add5b5cef835677a29fd</id>
<content type='text'>
Mike reported that rcuwait went walk-about and is causing failures on
the PREEMPT_RT builds, restore it.

Reported-by: Mike Galbraith &lt;efault@gmx.de&gt;
Signed-off-by: Peter Zijlstra (Intel) &lt;peterz@infradead.org&gt;
</content>
</entry>
<entry>
<title>futex: Implement sys_futex_waitv()</title>
<updated>2021-10-07T11:51:11Z</updated>
<author>
<name>André Almeida</name>
<email>andrealmeid@collabora.com</email>
</author>
<published>2021-09-23T17:11:05Z</published>
<link rel='alternate' type='text/html' href='https://git.kobert.dev/pm24.git/commit/?id=bf69bad38cf63d980e8a603f8d1bd1f85b5ed3d9'/>
<id>urn:sha1:bf69bad38cf63d980e8a603f8d1bd1f85b5ed3d9</id>
<content type='text'>
Add support to wait on multiple futexes. This is the interface
implemented by this syscall:

futex_waitv(struct futex_waitv *waiters, unsigned int nr_futexes,
	    unsigned int flags, struct timespec *timeout, clockid_t clockid)

struct futex_waitv {
	__u64 val;
	__u64 uaddr;
	__u32 flags;
	__u32 __reserved;
};

Given an array of struct futex_waitv, wait on each uaddr. The thread
wakes if a futex_wake() is performed at any uaddr. The syscall returns
immediately if any waiter has *uaddr != val. *timeout is an optional
absolute timeout value for the operation. This syscall supports only
64bit sized timeout structs. The flags argument of the syscall should be
empty, but it can be used for future extensions. Flags for shared
futexes, sizes, etc. should be used on the individual flags of each
waiter.

__reserved is used for explicit padding and should be 0, but it might be
used for future extensions. If the userspace uses 32-bit pointers, it
should make sure to explicitly cast it when assigning to waitv::uaddr.

Returns the array index of one of the woken futexes. There’s no given
information of how many were woken, or any particular attribute of it
(if it’s the first woken, if it is of the smaller index...).

Signed-off-by: André Almeida &lt;andrealmeid@collabora.com&gt;
Signed-off-by: Peter Zijlstra (Intel) &lt;peterz@infradead.org&gt;
Link: https://lore.kernel.org/r/20210923171111.300673-17-andrealmeid@collabora.com
</content>
</entry>
<entry>
<title>futex: Simplify double_lock_hb()</title>
<updated>2021-10-07T11:51:11Z</updated>
<author>
<name>Peter Zijlstra</name>
<email>peterz@infradead.org</email>
</author>
<published>2021-09-23T17:11:04Z</published>
<link rel='alternate' type='text/html' href='https://git.kobert.dev/pm24.git/commit/?id=bff7c57c2f50dca7b5e320f499e0898c3fb8a9ff'/>
<id>urn:sha1:bff7c57c2f50dca7b5e320f499e0898c3fb8a9ff</id>
<content type='text'>
We need to make sure that all requeue operations take the hash bucket
locks in the same order to avoid deadlock. Simplify the current
double_lock_hb implementation by making sure hb1 is always the
"smallest" bucket to avoid extra checks.

[André: Add commit description]
Signed-off-by: Peter Zijlstra (Intel) &lt;peterz@infradead.org&gt;
Signed-off-by: André Almeida &lt;andrealmeid@collabora.com&gt;
Signed-off-by: Peter Zijlstra (Intel) &lt;peterz@infradead.org&gt;
Reviewed-by: André Almeida &lt;andrealmeid@collabora.com&gt;
Link: https://lore.kernel.org/r/20210923171111.300673-16-andrealmeid@collabora.com
</content>
</entry>
<entry>
<title>futex: Split out wait/wake</title>
<updated>2021-10-07T11:51:11Z</updated>
<author>
<name>Peter Zijlstra</name>
<email>peterz@infradead.org</email>
</author>
<published>2021-09-23T17:11:03Z</published>
<link rel='alternate' type='text/html' href='https://git.kobert.dev/pm24.git/commit/?id=a046f1a0d3e320cfee6bdac336416a537f49e7c6'/>
<id>urn:sha1:a046f1a0d3e320cfee6bdac336416a537f49e7c6</id>
<content type='text'>
Move the wait/wake bits into their own file.

Signed-off-by: Peter Zijlstra (Intel) &lt;peterz@infradead.org&gt;
Signed-off-by: André Almeida &lt;andrealmeid@collabora.com&gt;
Signed-off-by: Peter Zijlstra (Intel) &lt;peterz@infradead.org&gt;
Reviewed-by: André Almeida &lt;andrealmeid@collabora.com&gt;
Link: https://lore.kernel.org/r/20210923171111.300673-15-andrealmeid@collabora.com
</content>
</entry>
<entry>
<title>futex: Split out requeue</title>
<updated>2021-10-07T11:51:10Z</updated>
<author>
<name>Peter Zijlstra</name>
<email>peterz@infradead.org</email>
</author>
<published>2021-09-23T17:11:02Z</published>
<link rel='alternate' type='text/html' href='https://git.kobert.dev/pm24.git/commit/?id=e5c6828493b5fa6a3c4606b43e80ab6c5ec1111f'/>
<id>urn:sha1:e5c6828493b5fa6a3c4606b43e80ab6c5ec1111f</id>
<content type='text'>
Move all the requeue bits into their own file.

Signed-off-by: Peter Zijlstra (Intel) &lt;peterz@infradead.org&gt;
Signed-off-by: André Almeida &lt;andrealmeid@collabora.com&gt;
Signed-off-by: Peter Zijlstra (Intel) &lt;peterz@infradead.org&gt;
Reviewed-by: André Almeida &lt;andrealmeid@collabora.com&gt;
Link: https://lore.kernel.org/r/20210923171111.300673-14-andrealmeid@collabora.com
</content>
</entry>
<entry>
<title>futex: Rename mark_wake_futex()</title>
<updated>2021-10-07T11:51:10Z</updated>
<author>
<name>Peter Zijlstra</name>
<email>peterz@infradead.org</email>
</author>
<published>2021-09-23T17:11:01Z</published>
<link rel='alternate' type='text/html' href='https://git.kobert.dev/pm24.git/commit/?id=95c336a7d8f0c1c34ee99e0162dc64d283da7618'/>
<id>urn:sha1:95c336a7d8f0c1c34ee99e0162dc64d283da7618</id>
<content type='text'>
In order to prepare introducing these symbols into the global
namespace; rename:

  s/mark_wake_futex/futex_wake_mark/g

Signed-off-by: Peter Zijlstra (Intel) &lt;peterz@infradead.org&gt;
Signed-off-by: André Almeida &lt;andrealmeid@collabora.com&gt;
Signed-off-by: Peter Zijlstra (Intel) &lt;peterz@infradead.org&gt;
Reviewed-by: André Almeida &lt;andrealmeid@collabora.com&gt;
Link: https://lore.kernel.org/r/20210923171111.300673-13-andrealmeid@collabora.com
</content>
</entry>
<entry>
<title>futex: Rename: match_futex()</title>
<updated>2021-10-07T11:51:10Z</updated>
<author>
<name>Peter Zijlstra</name>
<email>peterz@infradead.org</email>
</author>
<published>2021-09-23T17:11:00Z</published>
<link rel='alternate' type='text/html' href='https://git.kobert.dev/pm24.git/commit/?id=f56a76fde353dd274eef0ea9d371379950079951'/>
<id>urn:sha1:f56a76fde353dd274eef0ea9d371379950079951</id>
<content type='text'>
In order to prepare introducing these symbols into the global
namespace; rename:

  s/match_futex/futex_match/g

Signed-off-by: Peter Zijlstra (Intel) &lt;peterz@infradead.org&gt;
Signed-off-by: André Almeida &lt;andrealmeid@collabora.com&gt;
Signed-off-by: Peter Zijlstra (Intel) &lt;peterz@infradead.org&gt;
Reviewed-by: André Almeida &lt;andrealmeid@collabora.com&gt;
Link: https://lore.kernel.org/r/20210923171111.300673-12-andrealmeid@collabora.com
</content>
</entry>
<entry>
<title>futex: Rename: hb_waiter_{inc,dec,pending}()</title>
<updated>2021-10-07T11:51:09Z</updated>
<author>
<name>Peter Zijlstra</name>
<email>peterz@infradead.org</email>
</author>
<published>2021-09-23T17:10:59Z</published>
<link rel='alternate' type='text/html' href='https://git.kobert.dev/pm24.git/commit/?id=832c0542c0f71f7d2ba10e987a1ab520813e6bd7'/>
<id>urn:sha1:832c0542c0f71f7d2ba10e987a1ab520813e6bd7</id>
<content type='text'>
In order to prepare introducing these symbols into the global
namespace; rename them:

  s/hb_waiters_/futex_&amp;/g

Signed-off-by: Peter Zijlstra (Intel) &lt;peterz@infradead.org&gt;
Signed-off-by: André Almeida &lt;andrealmeid@collabora.com&gt;
Signed-off-by: Peter Zijlstra (Intel) &lt;peterz@infradead.org&gt;
Reviewed-by: André Almeida &lt;andrealmeid@collabora.com&gt;
Link: https://lore.kernel.org/r/20210923171111.300673-11-andrealmeid@collabora.com
</content>
</entry>
<entry>
<title>futex: Split out PI futex</title>
<updated>2021-10-07T11:51:09Z</updated>
<author>
<name>Peter Zijlstra</name>
<email>peterz@infradead.org</email>
</author>
<published>2021-09-23T17:10:58Z</published>
<link rel='alternate' type='text/html' href='https://git.kobert.dev/pm24.git/commit/?id=85dc28fa4ec058645c29bda952d901b29dfaa0b0'/>
<id>urn:sha1:85dc28fa4ec058645c29bda952d901b29dfaa0b0</id>
<content type='text'>
Move the PI futex implementation into it's own file.

Signed-off-by: Peter Zijlstra (Intel) &lt;peterz@infradead.org&gt;
Signed-off-by: André Almeida &lt;andrealmeid@collabora.com&gt;
Signed-off-by: Peter Zijlstra (Intel) &lt;peterz@infradead.org&gt;
Reviewed-by: André Almeida &lt;andrealmeid@collabora.com&gt;
Link: https://lore.kernel.org/r/20210923171111.300673-10-andrealmeid@collabora.com
</content>
</entry>
<entry>
<title>futex: Rename: {get,cmpxchg}_futex_value_locked()</title>
<updated>2021-10-07T11:51:09Z</updated>
<author>
<name>Peter Zijlstra</name>
<email>peterz@infradead.org</email>
</author>
<published>2021-09-23T17:10:57Z</published>
<link rel='alternate' type='text/html' href='https://git.kobert.dev/pm24.git/commit/?id=966cb75f86fb15e2659c8105d20d4889e18dda24'/>
<id>urn:sha1:966cb75f86fb15e2659c8105d20d4889e18dda24</id>
<content type='text'>
In order to prepare introducing these symbols into the global
namespace; rename them:

 s/\&lt;\([^_ ]*\)_futex_value_locked/futex_\1_value_locked/g

Signed-off-by: Peter Zijlstra (Intel) &lt;peterz@infradead.org&gt;
Signed-off-by: André Almeida &lt;andrealmeid@collabora.com&gt;
Signed-off-by: Peter Zijlstra (Intel) &lt;peterz@infradead.org&gt;
Reviewed-by: André Almeida &lt;andrealmeid@collabora.com&gt;
Link: https://lore.kernel.org/r/20210923171111.300673-9-andrealmeid@collabora.com
</content>
</entry>
</feed>
