block: add close notifiers
commitd7d512f60979681c27597f1b1277e03505c1de08
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 23 Aug 2012 09:20:36 +0000 (23 11:20 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 23 Oct 2012 20:39:32 +0000 (23 22:39 +0200)
treeb41db25ccf86d7ab94d37bbbd620e0b21c941f78
parent3cbc002c34aa85ea952ee9b169a3ff97d350516a
block: add close notifiers

The first user of close notifiers will be the embedded NBD server.
It would be possible to use them to do some of the ad hoc processing
(e.g. for block jobs and I/O limits) that is currently done by
bdrv_close.

Acked-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Makefile.objs
block.c
block.h
block_int.h