Commit a129d917 authored by Mikulas Patocka's avatar Mikulas Patocka Committed by Yang Yingliang
Browse files

dm integrity: fix flush with external metadata device



stable inclusion
from linux-4.19.170
commit f9f5547bf02a8ec1a9240b8ab6fece5b28d74d1b

--------------------------------

commit 9b594826 upstream.

With external metadata device, flush requests are not passed down to the
data device.

Fix this by submitting the flush request in dm_integrity_flush_buffers. In
order to not degrade performance, we overlap the data device flush with
the metadata device flush.

Reported-by: default avatarLukas Straub <lukasstraub2@web.de>
Signed-off-by: default avatarMikulas Patocka <mpatocka@redhat.com>
Cc: stable@vger.kernel.org
Signed-off-by: default avatarMike Snitzer <snitzer@redhat.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
Signed-off-by: default avatarCheng Jian <cj.chengjian@huawei.com>
parent 3778ea0c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment