]> git.baikalelectronics.ru Git - kernel.git/commit
virtio/s390: fix race on airq_areas[]
authorHalil Pasic <pasic@linux.ibm.com>
Tue, 23 Jul 2019 15:11:01 +0000 (17:11 +0200)
committerHeiko Carstens <heiko.carstens@de.ibm.com>
Fri, 26 Jul 2019 11:36:18 +0000 (13:36 +0200)
commitb446ad8dcf4065b1761678111bfe3a2586e73a3e
tree104319c03391b176c77080df0292e26f7394a8a7
parenta69278eeafa3ba4c14ddfe5dc8fcfb279b59e44d
virtio/s390: fix race on airq_areas[]

The access to airq_areas was racy ever since the adapter interrupts got
introduced to virtio-ccw, but since commit 6a73e5570063 ("virtio/s390:
make airq summary indicators DMA") this became an issue in practice as
well. Namely before that commit the airq_info that got overwritten was
still functional. After that commit however the two infos share a
summary_indicator, which aggravates the situation. Which means
auto-online mechanism occasionally hangs the boot with virtio_blk.

Signed-off-by: Halil Pasic <pasic@linux.ibm.com>
Reported-by: Marc Hartmayer <mhartmay@linux.ibm.com>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Cc: stable@vger.kernel.org
Fixes: 6332067e8476 ("virtio-ccw: virtio-ccw adapter interrupt support.")
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
drivers/s390/virtio/virtio_ccw.c