tcmu: Fix flushing cmd entry dcache page
authorXiubo Li <lixiubo@cmss.chinamobile.com>
Fri, 30 Jun 2017 08:14:16 +0000 (16:14 +0800)
committerNicholas Bellinger <nab@linux-iscsi.org>
Fri, 7 Jul 2017 06:11:43 +0000 (23:11 -0700)
commit9d62bc0e6d79b11e3298e831358155930fb8f5e3
treefcaab5e9a2442754f32eed8d0b8ca09e2da2295f
parent9260695d65590f4711d1166eadbfcb0acfa0625a
tcmu: Fix flushing cmd entry dcache page

When feeding the tcmu's cmd ring, we need to flush the dcache page
for the cmd entry to make sure these kernel stores are visible to
user space mappings of that page.

For the none PAD cmd entry, this will be flushed at the end of the
tcmu_queue_cmd_ring().

Signed-off-by: Xiubo Li <lixiubo@cmss.chinamobile.com>
Reviewed-by: Mike Christie <mchristi@redhat.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_user.c