Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 3273
b: refs/heads/master
c: b2b1866
h: refs/heads/master
i:
  3271: 6b9bb6e
v: v3
  • Loading branch information
Paul E. McKenney authored and Linus Torvalds committed Jun 25, 2005
1 parent f20e191 commit ad20482
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ae67cd643e9e64217fd92457324625c67fec6e35
refs/heads/master: b2b18660066997420b716c1881a6be8b82700d97
2 changes: 1 addition & 1 deletion trunk/arch/x86_64/kernel/mce.c
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ static ssize_t mce_read(struct file *filp, char __user *ubuf, size_t usize, loff
memset(mcelog.entry, 0, next * sizeof(struct mce));
mcelog.next = 0;

synchronize_kernel();
synchronize_sched();

/* Collect entries that were still getting written before the synchronize. */

Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/input/serio/i8042.c
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ static void i8042_stop(struct serio *serio)
struct i8042_port *port = serio->port_data;

port->exists = 0;
synchronize_kernel();
synchronize_sched();
port->serio = NULL;
}

Expand Down
2 changes: 1 addition & 1 deletion trunk/include/asm-i386/kdebug.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ struct die_args {
};

/* Note - you should never unregister because that can race with NMIs.
If you really want to do it first unregister - then synchronize_kernel - then free.
If you really want to do it first unregister - then synchronize_sched - then free.
*/
int register_die_notifier(struct notifier_block *nb);
extern struct notifier_block *i386die_chain;
Expand Down
2 changes: 1 addition & 1 deletion trunk/include/asm-ppc64/kdebug.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ struct die_args {

/*
Note - you should never unregister because that can race with NMIs.
If you really want to do it first unregister - then synchronize_kernel -
If you really want to do it first unregister - then synchronize_sched -
then free.
*/
int register_die_notifier(struct notifier_block *nb);
Expand Down
2 changes: 1 addition & 1 deletion trunk/include/asm-sparc64/kdebug.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ struct die_args {
};

/* Note - you should never unregister because that can race with NMIs.
* If you really want to do it first unregister - then synchronize_kernel
* If you really want to do it first unregister - then synchronize_sched
* - then free.
*/
int register_die_notifier(struct notifier_block *nb);
Expand Down
2 changes: 1 addition & 1 deletion trunk/include/asm-x86_64/kdebug.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ struct die_args {
};

/* Note - you should never unregister because that can race with NMIs.
If you really want to do it first unregister - then synchronize_kernel - then free.
If you really want to do it first unregister - then synchronize_sched - then free.
*/
int register_die_notifier(struct notifier_block *nb);
extern struct notifier_block *die_chain;
Expand Down
2 changes: 1 addition & 1 deletion trunk/include/linux/list.h
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ static inline void list_del(struct list_head *entry)
* list_for_each_entry_rcu().
*
* Note that the caller is not permitted to immediately free
* the newly deleted entry. Instead, either synchronize_kernel()
* the newly deleted entry. Instead, either synchronize_rcu()
* or call_rcu() must be used to defer freeing until an RCU
* grace period has elapsed.
*/
Expand Down
2 changes: 1 addition & 1 deletion trunk/security/keys/key.c
Original file line number Diff line number Diff line change
Expand Up @@ -980,7 +980,7 @@ void unregister_key_type(struct key_type *ktype)
spin_unlock(&key_serial_lock);

/* make sure everyone revalidates their keys */
synchronize_kernel();
synchronize_rcu();

/* we should now be able to destroy the payloads of all the keys of
* this type with impunity */
Expand Down
2 changes: 1 addition & 1 deletion trunk/security/keys/process_keys.c
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ static int install_session_keyring(struct task_struct *tsk,
ret = 0;

/* we're using RCU on the pointer */
synchronize_kernel();
synchronize_rcu();
key_put(old);
error:
return ret;
Expand Down

0 comments on commit ad20482

Please sign in to comment.