Skip to content

Commit 31f4104

Browse files
committed
Merge tag 'locking_urgent_for_v6.4_rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull locking fix from Borislav Petkov: - Make sure __down_read_common() is always inlined so that the callers' names land in traceevents output and thus the blocked function can be identified * tag 'locking_urgent_for_v6.4_rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: locking/rwsem: Add __always_inline annotation to __down_read_common() and inlined callers
2 parents ef21831 + 92cc5d0 commit 31f4104

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

kernel/locking/rwsem.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1240,7 +1240,7 @@ static struct rw_semaphore *rwsem_downgrade_wake(struct rw_semaphore *sem)
12401240
/*
12411241
* lock for reading
12421242
*/
1243-
static inline int __down_read_common(struct rw_semaphore *sem, int state)
1243+
static __always_inline int __down_read_common(struct rw_semaphore *sem, int state)
12441244
{
12451245
int ret = 0;
12461246
long count;
@@ -1258,17 +1258,17 @@ static inline int __down_read_common(struct rw_semaphore *sem, int state)
12581258
return ret;
12591259
}
12601260

1261-
static inline void __down_read(struct rw_semaphore *sem)
1261+
static __always_inline void __down_read(struct rw_semaphore *sem)
12621262
{
12631263
__down_read_common(sem, TASK_UNINTERRUPTIBLE);
12641264
}
12651265

1266-
static inline int __down_read_interruptible(struct rw_semaphore *sem)
1266+
static __always_inline int __down_read_interruptible(struct rw_semaphore *sem)
12671267
{
12681268
return __down_read_common(sem, TASK_INTERRUPTIBLE);
12691269
}
12701270

1271-
static inline int __down_read_killable(struct rw_semaphore *sem)
1271+
static __always_inline int __down_read_killable(struct rw_semaphore *sem)
12721272
{
12731273
return __down_read_common(sem, TASK_KILLABLE);
12741274
}

0 commit comments

Comments
 (0)