nbd: Use BDRV_REQ_FUA for better FUA where supported
authorEric Blake <eblake@redhat.com>
Wed, 11 May 2016 22:39:34 +0000 (16:39 -0600)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 16 Jun 2016 16:39:04 +0000 (18:39 +0200)
commita0c303693ead8236a55a59097d75bd521f8212e2
treecf5e0e2311a9db129e90f2b1c765cc62696917b0
parent37146e7eafafd121d80d68455b8f4bc9043a9f4f
nbd: Use BDRV_REQ_FUA for better FUA where supported

Rather than always flushing ourselves, let the block layer
forward the FUA on to the underlying device - where all
underlying layers also understand FUA, we are now more
efficient; and where any underlying layer doesn't understand
it, now the block layer takes care of the full flush fallback
on our behalf.

Signed-off-by: Eric Blake <eblake@redhat.com>
Message-Id: <1463006384-7734-2-git-send-email-eblake@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
nbd/server.c