Marc-André Lureau 9e0bc24fa5 vhost: make vhost_log_put() idempotent
Although not strictly required, it is nice to have vhost_log_put()
safely callable multiple times.

Clear dev->log* when calling vhost_log_put() to make the function
idempotent. This also simplifies a bit the caller work.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
2016-07-29 00:33:46 +03:00
..
2016-07-21 20:44:20 +03:00
2016-07-19 20:18:02 +02:00
2016-07-21 20:44:20 +03:00
2016-06-17 16:33:48 +10:00
2016-06-14 15:59:13 +01:00
2016-07-21 20:44:20 +03:00
2016-05-18 15:04:27 +03:00
2016-06-07 18:02:48 +03:00
2016-06-29 14:03:48 +02:00
2016-07-20 19:30:26 +03:00
2016-07-29 00:33:46 +03:00
2016-07-29 00:07:09 +03:00
2016-01-29 15:07:25 +00:00
2016-06-24 05:13:57 +03:00
2016-07-12 12:34:41 +01:00
2015-12-22 18:39:19 +02:00