block: set sector dirty on AIO write completion
authorMarcelo Tosatti <mtosatti@redhat.com>
Mon, 8 Nov 2010 19:02:55 +0000 (17:02 -0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Sun, 21 Nov 2010 15:16:56 +0000 (09:16 -0600)
commit4dcafbb1eba2ee201ec86027982659b669f99c70
tree1a38518010ee60df890d0fb80deca9c49ad8ff9a
parent6d59fec11eeff8a784dc4991c8fe4f8538510475
block: set sector dirty on AIO write completion

Sectors are marked dirty in the bitmap on AIO submission. This is wrong
since data has not reached storage.

Set a given sector as dirty in the dirty bitmap on AIO completion, so that
reading a sector marked as dirty is guaranteed to return uptodate data.

Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
block.c