ofproto-dpif-monitor: Acquire write lock in monitor_run().
authorAlex Wang <alexw@nicira.com>
Fri, 13 Dec 2013 19:29:09 +0000 (11:29 -0800)
committerBen Pfaff <blp@nicira.com>
Tue, 17 Dec 2013 23:42:10 +0000 (15:42 -0800)
commit32f61d592afffc031765d9b24d90be9fb8169dca
tree9f4077ca51b9b3190c8d4a34c8a08c5b2097e069
parent48380ae607d4c170108c980efb8afe267f6a37dc
ofproto-dpif-monitor: Acquire write lock in monitor_run().

Commit 307464a1 (ofproto-dpif-monitor: Use heap to order the mport
wakeup time.) re-heapifies the heap in monitor_run().  So the
monitor_run() should be protected by the write lock, rather than
the read lock.

This commit fixes the issue.

Signed-off-by: Alex Wang <alexw@nicira.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
ofproto/ofproto-dpif-monitor.c