OSDN Git Service

nfs: move nfs_set_events out of the while loops
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 27 Oct 2016 10:48:56 +0000 (12:48 +0200)
committerFam Zheng <famz@redhat.com>
Fri, 28 Oct 2016 13:50:18 +0000 (21:50 +0800)
commitaa92d6c4609e174fc6884e4b7b87367fac33cbe9
tree6875eb1d829252d5a72b55541f4235ffb1fc9201
parent88b062c2036cfd05b5111147736a08ba05ea05a9
nfs: move nfs_set_events out of the while loops

nfs_set_events only needs to be called once before entering the
while loop; afterwards, nfs_process_read and nfs_process_write
take care of it.

Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Message-Id: <1477565348-5458-9-git-send-email-pbonzini@redhat.com>
Signed-off-by: Fam Zheng <famz@redhat.com>
block/nfs.c