Delete IOHandlers after potentially running them
commit0290b57bdfec83ca78b6d119ea9847bb17943328
authorStefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Wed, 3 Nov 2010 14:29:44 +0000 (3 14:29 +0000)
committerAnthony Liguori <aliguori@us.ibm.com>
Tue, 16 Nov 2010 20:35:00 +0000 (16 14:35 -0600)
tree86226f84596042c477b12be9e990af07eb4f9afa
parent2cc59d8cb0ebcfa9cf3476c0528e50478997ab0c
Delete IOHandlers after potentially running them

Since commit 4bed9837309e58d208183f81d8344996744292cf an .fd_read()
handler that deletes its IOHandler is exposed to .fd_write() being
called on the deleted IOHandler.

This patch fixes deletion so that .fd_read() and .fd_write() are never
called on an IOHandler that is marked for deletion.

Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
vl.c