lkml.org 
[lkml]   [2008]   [Oct]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subjectlock free inotify_ioctl()?
Date

Hello John McCutchan and Robert Love,

I have a question about inotify_ioctl().
I am investigating if a user process misses the inotify event or gets
wrong event by ioctl(fd, FIONREAD, &pending) in linux-2.6.27, and found
it doesn't acquire dev->ev_mutex lock before accessing dev->queue_size.

In SMP system, is it safe and sure too?
Is the mutex lock unnecessary?


Junjiro R. Okajima


\
 
 \ /
  Last update: 2008-10-22 15:43    [W:0.027 / U:0.128 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site