Skip to content

Commit ca062f8

Browse files
committed
Merge branch 'locking-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull locking fixes from Ingo Molnar: "Misc fixes: liblockdep fixes and ww_mutex fixes" * 'locking-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: locking/ww_mutex: Fix spelling mistake "cylic" -> "cyclic" locking/lockdep: Delete unnecessary #include tools/lib/lockdep: Add dummy task_struct state member tools/lib/lockdep: Add empty nmi.h tools/lib/lockdep: Update Sasha Levin email to MSFT jump_label: Fix typo in warning message locking/mutex: Fix mutex debug call and ww_mutex documentation
2 parents 3a5af36 + 0b405c6 commit ca062f8

File tree

7 files changed

+7
-6
lines changed

7 files changed

+7
-6
lines changed

MAINTAINERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8316,7 +8316,7 @@ F: include/linux/libata.h
83168316
F: Documentation/devicetree/bindings/ata/
83178317

83188318
LIBLOCKDEP
8319-
M: Sasha Levin <alexander.levin@verizon.com>
8319+
M: Sasha Levin <alexander.levin@microsoft.com>
83208320
S: Maintained
83218321
F: tools/lib/lockdep/
83228322

kernel/jump_label.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -678,7 +678,7 @@ jump_label_module_notify(struct notifier_block *self, unsigned long val,
678678
case MODULE_STATE_COMING:
679679
ret = jump_label_add_module(mod);
680680
if (ret) {
681-
WARN(1, "Failed to allocatote memory: jump_label may not work properly.\n");
681+
WARN(1, "Failed to allocate memory: jump_label may not work properly.\n");
682682
jump_label_del_module(mod);
683683
}
684684
break;

kernel/locking/lockdep.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@
5555

5656
#include "lockdep_internals.h"
5757

58-
#include <trace/events/preemptirq.h>
5958
#define CREATE_TRACE_POINTS
6059
#include <trace/events/lock.h>
6160

kernel/locking/mutex.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ static bool __ww_mutex_wound(struct mutex *lock,
389389
/*
390390
* wake_up_process() paired with set_current_state()
391391
* inserts sufficient barriers to make sure @owner either sees
392-
* it's wounded in __ww_mutex_lock_check_stamp() or has a
392+
* it's wounded in __ww_mutex_check_kill() or has a
393393
* wakeup pending to re-read the wounded state.
394394
*/
395395
if (owner != current)
@@ -946,7 +946,6 @@ __mutex_lock_common(struct mutex *lock, long state, unsigned int subclass,
946946
}
947947

948948
debug_mutex_lock_common(lock, &waiter);
949-
debug_mutex_add_waiter(lock, &waiter, current);
950949

951950
lock_contended(&lock->dep_map, ip);
952951

kernel/locking/test-ww_mutex.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ static int __test_cycle(unsigned int nthreads)
324324
if (!cycle->result)
325325
continue;
326326

327-
pr_err("cylic deadlock not resolved, ret[%d/%d] = %d\n",
327+
pr_err("cyclic deadlock not resolved, ret[%d/%d] = %d\n",
328328
n, nthreads, cycle->result);
329329
ret = -EINVAL;
330330
break;

tools/include/linux/lockdep.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,12 @@ struct task_struct {
3030
struct held_lock held_locks[MAX_LOCK_DEPTH];
3131
gfp_t lockdep_reclaim_gfp;
3232
int pid;
33+
int state;
3334
char comm[17];
3435
};
3536

37+
#define TASK_RUNNING 0
38+
3639
extern struct task_struct *__curr(void);
3740

3841
#define current (__curr())

tools/include/linux/nmi.h

Whitespace-only changes.

0 commit comments

Comments
 (0)