]> git.proxmox.com Git - mirror_ubuntu-bionic-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)
committerJuerg Haefliger <juergh@canonical.com>
Wed, 24 Jul 2019 01:45:41 +0000 (19:45 -0600)
commit2ad6a5b25310fa31a2ddd9f0eaed8e95851a1cbb
tree81d4cc16077969ea1a047b705448845db60ec70c
parent6975cf46e8704bd650ffa9be547e9879f69cbd8d
dm integrity: change 'suspending' variable from bool to int

BugLink: https://bugs.launchpad.net/bugs/1835972
commit c21b16392701543d61e366dca84e15fe7f0cf0cf upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
drivers/md/dm-integrity.c