[dm-devel] [PATCH] dm: fix race condition on Alpha

2022-03-28 Thread Mikulas Patocka
Early alpha processors cannot write a single byte or short; they read 8 bytes, modify the value in registers and write back 8 bytes. This could cause race condition in the structure dm_io - if the fields flags and io_count are modified simultaneously. Fix this bug by using 32-bit flags if we are

Re: [dm-devel] [PATCH] dm: fix race condition on Alpha

2022-03-28 Thread Hannes Reinecke
On 3/28/22 18:34, Mikulas Patocka wrote: Early alpha processors cannot write a single byte or short; they read 8 bytes, modify the value in registers and write back 8 bytes. This could cause race condition in the structure dm_io - if the fields flags and io_count are modified simultaneously. Fi

Re: [dm-devel] [PATCH] dm: fix race condition on Alpha

2022-03-30 Thread Mikulas Patocka
On Tue, 29 Mar 2022, Hannes Reinecke wrote: > On 3/28/22 18:34, Mikulas Patocka wrote: > > Early alpha processors cannot write a single byte or short; they read 8 > > bytes, modify the value in registers and write back 8 bytes. > > > > This could cause race condition in the structure dm_io - i