X-Git-Url: http://www.pilppa.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=fs%2Ffile_table.c;h=5ad0eca6eea27b1ee33fcd8415c05edfeac97d82;hb=233e70f4228e78eb2f80dc6650f65d3ae3dbf17c;hp=efc06faede6c3d6c27c324da2042b7d324e53f8e;hpb=3318a386e4ca68c76e0294363d29bdc46fcad670;p=linux-2.6-omap-h63xx.git diff --git a/fs/file_table.c b/fs/file_table.c index efc06faede6..5ad0eca6eea 100644 --- a/fs/file_table.c +++ b/fs/file_table.c @@ -269,6 +269,10 @@ void __fput(struct file *file) eventpoll_release(file); locks_remove_flock(file); + if (unlikely(file->f_flags & FASYNC)) { + if (file->f_op && file->f_op->fasync) + file->f_op->fasync(-1, file, 0); + } if (file->f_op && file->f_op->release) file->f_op->release(inode, file); security_file_free(file);