Re: [PATCH] virtio-rng: Avoid repeated init of completion

2019-01-18 Thread Herbert Xu
On Mon, Jan 07, 2019 at 03:44:38PM -0800, David Tolnay wrote: > From: David Tolnay > Date: Mon, 7 Jan 2019 14:36:11 -0800 > Subject: [PATCH] virtio-rng: Avoid repeated init of completion > > The virtio-rng driver uses a completion called have_data to wait for a > virtio read

[PATCH] virtio-rng: Avoid repeated init of completion

2019-01-07 Thread David Tolnay
From: David Tolnay Date: Mon, 7 Jan 2019 14:36:11 -0800 Subject: [PATCH] virtio-rng: Avoid repeated init of completion The virtio-rng driver uses a completion called have_data to wait for a virtio read to be fulfilled by the hypervisor. The completion is reset before placing a buffer on the