|
@@ -733,12 +733,14 @@ static void kill_fasync_rcu(struct fasync_struct *fa, int sig, int band)
|
|
{
|
|
{
|
|
while (fa) {
|
|
while (fa) {
|
|
struct fown_struct *fown;
|
|
struct fown_struct *fown;
|
|
|
|
+ unsigned long flags;
|
|
|
|
+
|
|
if (fa->magic != FASYNC_MAGIC) {
|
|
if (fa->magic != FASYNC_MAGIC) {
|
|
printk(KERN_ERR "kill_fasync: bad magic number in "
|
|
printk(KERN_ERR "kill_fasync: bad magic number in "
|
|
"fasync_struct!\n");
|
|
"fasync_struct!\n");
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
- spin_lock(&fa->fa_lock);
|
|
|
|
|
|
+ spin_lock_irqsave(&fa->fa_lock, flags);
|
|
if (fa->fa_file) {
|
|
if (fa->fa_file) {
|
|
fown = &fa->fa_file->f_owner;
|
|
fown = &fa->fa_file->f_owner;
|
|
/* Don't send SIGURG to processes which have not set a
|
|
/* Don't send SIGURG to processes which have not set a
|
|
@@ -747,7 +749,7 @@ static void kill_fasync_rcu(struct fasync_struct *fa, int sig, int band)
|
|
if (!(sig == SIGURG && fown->signum == 0))
|
|
if (!(sig == SIGURG && fown->signum == 0))
|
|
send_sigio(fown, fa->fa_fd, band);
|
|
send_sigio(fown, fa->fa_fd, band);
|
|
}
|
|
}
|
|
- spin_unlock(&fa->fa_lock);
|
|
|
|
|
|
+ spin_unlock_irqrestore(&fa->fa_lock, flags);
|
|
fa = rcu_dereference(fa->fa_next);
|
|
fa = rcu_dereference(fa->fa_next);
|
|
}
|
|
}
|
|
}
|
|
}
|