> Fix synchronization around accessing event list.

 > +    down(&file->mutex);
 >      if (!list_empty(&file->events))
 >              mask = POLLIN | POLLRDNORM;
 > +    up(&file->mutex);

Actually, could you give a little more detail about why this is
needed, if only for the changelog?  I don't see what putting the mutex
around the list_empty() test buys you -- the list_empty() test already
is pretty atomic I think.

 - R.
_______________________________________________
openib-general mailing list
[email protected]
http://openib.org/mailman/listinfo/openib-general

To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general

Reply via email to