]> git.baikalelectronics.ru Git - kernel.git/commit
dm integrity: change 'suspending' variable from bool to int
authorMikulas Patocka <mpatocka@redhat.com>
Tue, 3 Jul 2018 18:13:25 +0000 (20:13 +0200)
committerMike Snitzer <snitzer@redhat.com>
Fri, 27 Jul 2018 19:24:20 +0000 (15:24 -0400)
commitf19fe25a5b7d0afa1151583f72d508b011fb73ad
tree894be88cee90fcb91241fc2042a8bb68acf2f9f6
parentf28b595a37f70d6a20ccbccd1a0170e451c3185d
dm integrity: change 'suspending' variable from bool to int

Early alpha processors can't write a byte or short atomically - they
read 8 bytes, modify the byte or two bytes in registers and write back
8 bytes.

The modification of the variable "suspending" may race with
modification of the variable "failed".  Fix this by changing
"suspending" to an int.

Cc: stable@vger.kernel.org
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-integrity.c