Re: [PATCH v2] drm/virtio: fix resource id creation race

2020-02-24 Thread Gerd Hoffmann
On Thu, Feb 20, 2020 at 02:53:19PM -0800, John Bates wrote: > The previous code was not thread safe and caused > undefined behavior from spurious duplicate resource IDs. > In this patch, an atomic_t is used instead. We no longer > see any duplicate IDs in tests with this change. > > Fixes: 16065fc

Re: [PATCH v2] drm/virtio: fix resource id creation race

2020-02-21 Thread Chia-I Wu
On Fri, Feb 21, 2020 at 3:14 AM John Bates wrote: > > The previous code was not thread safe and caused > undefined behavior from spurious duplicate resource IDs. > In this patch, an atomic_t is used instead. We no longer > see any duplicate IDs in tests with this change. > > Fixes: 16065fcdd19d ("

[PATCH v2] drm/virtio: fix resource id creation race

2020-02-21 Thread John Bates
The previous code was not thread safe and caused undefined behavior from spurious duplicate resource IDs. In this patch, an atomic_t is used instead. We no longer see any duplicate IDs in tests with this change. Fixes: 16065fcdd19d ("drm/virtio: do NOT reuse resource ids") Signed-off-by: John Bate