[vfs2] Do not drop inotify waiters across S/R.

The waits-for relationship between an epoll instance and an inotify fd should
be restored.

This fixes flaky inotify vfs2 tests.

PiperOrigin-RevId: 340531367
This commit is contained in:
Dean Deng
2020-11-03 14:56:35 -08:00
committed by gVisor bot
parent 723464ec55
commit 580bbb7497
+1 -1
View File
@@ -65,7 +65,7 @@ type Inotify struct {
// queue is used to notify interested parties when the inotify instance
// becomes readable or writable.
queue waiter.Queue `state:"nosave"`
queue waiter.Queue
// evMu *only* protects the events list. We need a separate lock while
// queuing events: using mu may violate lock ordering, since at that point