lkml.org 
[lkml]   [2008]   [May]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] [8/11] Use unlocked_fasync in random.c
Date

Just uses fasync_helper which does its own locking

Cc: mpm@selenic.com

Signed-off-by: Andi Kleen <ak@linux.intel.com>

Index: linux/drivers/char/random.c
===================================================================
--- linux.orig/drivers/char/random.c
+++ linux/drivers/char/random.c
@@ -1121,7 +1121,7 @@ const struct file_operations random_fops
.write = random_write,
.poll = random_poll,
.unlocked_ioctl = random_ioctl,
- .fasync = random_fasync,
+ .unlocked_fasync = random_fasync,
.release = random_release,
};

@@ -1129,7 +1129,7 @@ const struct file_operations urandom_fop
.read = urandom_read,
.write = random_write,
.unlocked_ioctl = random_ioctl,
- .fasync = random_fasync,
+ .unlocked_fasync = random_fasync,
.release = random_release,
};


\
 
 \ /
  Last update: 2008-05-19 14:35    [W:0.921 / U:0.024 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site