Skip to content
Commit 89d0c804 authored by Jianchao Wang's avatar Jianchao Wang Committed by Martin K. Petersen
Browse files

scsi: iscsi_tcp: set BDI_CAP_STABLE_WRITES when data digest enabled



iscsi tcp will first send out data, then calculate and send data
digest. If we don't have BDI_CAP_STABLE_WRITES, the page cache will be
written in spite of the on going writeback. Consequently, wrong digest
will be got and sent to target.

To fix this, set BDI_CAP_STABLE_WRITES when data digest is enabled
in iscsi_tcp .slave_configure callback.

Signed-off-by: default avatarJianchao Wang <jianchao.w.wang@oracle.com>
Acked-by: default avatarChris Leech <cleech@redhat.com>
Acked-by: default avatarLee Duncan <lduncan@suse.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent 597d7400
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment