Received: by 10.213.65.68 with SMTP id h4csp1570530imn; Thu, 15 Mar 2018 03:38:37 -0700 (PDT) X-Google-Smtp-Source: AG47ELuBMgdzk0GSaJj3kKxweNY40yuSHfSU0c7CDEMS3ut9QprQA4/WHVWcUqi+ZUkFCKHFBjC+ X-Received: by 10.99.96.19 with SMTP id u19mr6191448pgb.261.1521110317495; Thu, 15 Mar 2018 03:38:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521110317; cv=none; d=google.com; s=arc-20160816; b=tXYTbr3Vrt5zVtnPPmR2ETUpVktSYWEI/DigEnEFEygdt0sGycImU0Skg2v/dRVML5 TdFoFdeUSAsHh+5DTLg06hBfkFxUWoK7wFjb4VBGkiwg2GtfcD1Sy7fbzFOuQHpUPwSi FUIWFI8Sm11Rd1BsSrwdjI4s8p4r/4Eyh1jMA/p5WeS/tJ+QK9rrr+8Ix3ezCvxQzm1c q3WuBY3eUNWIaEYrpEW0HyE9le7L2lq71p64+fd4MJtn8RfrzAfSQhRXGrfJXdOjLMeB XFs3woSEdJe56a8GFH0gCJ2kpRZTe7k6YwwznWTsVGm7kG+6e71sQP9GOx7J64/nl217 17wQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version:dkim-signature:arc-authentication-results; bh=lkW+xXB9c/IW8P+O8JBzf4zojD8O7e01DbA4sZ640rM=; b=0AZ/qZzd+lEUguUf0LQatkJuJlLLcUqV3ySGFA0nz4mlx55n3H+w+NcBeb3FosPvuL spOWAr3vnQi3ijoGBKoJAOMAjgh6/hblnqaHf23+YiIpoGN/kY/KZJUynb6JxcIV8m39 9c2/rU2j2sk9MmpX98Vax3BlblC1+06fP168Rm34fSYAI3lP3V44k3hzG0qCBb+sVDY0 ADqbSvHH366kgY7sSHx8Y/2JfGvdUALmFvizNiBnDyC75HtkyNFpt+Rbv3Afe33ojfnf 1HIgevbjkahvngka+rDppANsjcKcfMa7BKsz7lduXA53xur/kd3MhAzTujLUnp2MnX17 LFxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=YSlJsxFN; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r79si3638265pfb.126.2018.03.15.03.38.22; Thu, 15 Mar 2018 03:38:37 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=YSlJsxFN; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751945AbeCOKh3 (ORCPT + 99 others); Thu, 15 Mar 2018 06:37:29 -0400 Received: from mail-ot0-f169.google.com ([74.125.82.169]:43572 "EHLO mail-ot0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751481AbeCOKh1 (ORCPT ); Thu, 15 Mar 2018 06:37:27 -0400 Received: by mail-ot0-f169.google.com with SMTP id m22-v6so6345297otf.10; Thu, 15 Mar 2018 03:37:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=lkW+xXB9c/IW8P+O8JBzf4zojD8O7e01DbA4sZ640rM=; b=YSlJsxFNRmQ1BJ/Wfyq+LXTMNCjAbUYGq0dWj+q6LWuqQCDfbtvF31ZKLwCy93gh2n TJ8NAI1QX9EUdXxDBg+I6RE1Yjl1/Vdr5v8nUWAbqXjX1jOhCIFaPX5yTCCIlIwMYt2a KcphERsqEQWPQroNJFtCK0IAvedbKcazu19YNDD5M0xGAWOZ+iGAyqgpSm1XehyRG1p2 4QI+M3Nq86knIUVgP+KcmgKWnCsrn1H3wP/Qo0l3VIFnAPP2hJy0v003zKkug3P5ymIL hT3KAlTtIK0zDfIxPLoV+idAd7YncSNH+qVd7ZgCT9nfk2oW+agawKSOd6nxZmoGyQIB +KPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=lkW+xXB9c/IW8P+O8JBzf4zojD8O7e01DbA4sZ640rM=; b=mDyH78zbGPtZi3asFZluO8tnfXdxO4K0BFQYyZBO7LuTqX+Ws/xDzg6l8rkTx8Ei0r 1GZ2eWsp2RsaXIC0FxtzXjF/GwTBEefwBBsAFPhLT0S4STFUqAWMqfeiqlSRN0T/rejN GltRdk3obagOtnTCMyLe8CevV3XXzzp4SEe5zU9yeY56FzGWGFm86MEWh1+AUSXNGMBA v/7NQBnAel7qL+RJIYNtjYZF3N7cyIaVG9RGZVQPIDGOfIDNfWvxMGKLJMG8su/SUxOf qwRucPcLW9YoLtegaLt0Lixd1shriVIdbKuBGAn9lsFzEX3d0RyPa6mO52Bl5kNd2m0M YwRA== X-Gm-Message-State: AElRT7Hx8qX5Xgh+VzyAkBCRmbkoXvfNc4EvL347f8d46v1Q26DCVe4I b6V5Hu6oA+EDqbyAJaKAzpM= X-Received: by 10.157.54.152 with SMTP id h24mr5464459otc.173.1521110247219; Thu, 15 Mar 2018 03:37:27 -0700 (PDT) Received: from [10.156.82.180] (mobile-166-173-63-78.mycingular.net. [166.173.63.78]) by smtp.gmail.com with ESMTPSA id 3sm1095791ota.43.2018.03.15.03.37.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 15 Mar 2018 03:37:26 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (1.0) Subject: Re: [PATCH] scsi: iscsi_tcp: set BDI_CAP_STABLE_WRITES when data digest enabled From: Lee Duncan X-Mailer: iPhone Mail (15D100) In-Reply-To: Date: Thu, 15 Mar 2018 04:37:24 -0600 Cc: lduncan@suse.com, cleech@redhat.com, Jianchao Wang , jejb@linux.vnet.ibm.com, martin.petersen@oracle.com, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable Message-Id: <8FA9AB3F-DFD0-4DB9-B1F3-0C1049E4A2E5@gmail.com> References: <1520425743-1923-1-git-send-email-jianchao.w.wang@oracle.com> To: open-iscsi@googlegroups.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org I reviewed this several days before but mistakenly replied only to the open-= iscsi list.=20 Signed-off-by: Lee Duncan -- Lee-Man Duncan Sent from my iPhone, dude > On Mar 14, 2018, at 10:11 PM, Martin K. Petersen wrote: >=20 >=20 >> 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. >>=20 >> To fix this, set BDI_CAP_STABLE_WRITES when data digest is enabled >> in iscsi_tcp .slave_configure callback. >=20 > Lee, Chris: Please review! >=20 > --=20 > Martin K. Petersen Oracle Linux Engineering >=20 > --=20 > You received this message because you are subscribed to a topic in the Goo= gle Groups "open-iscsi" group. > To unsubscribe from this topic, visit https://groups.google.com/d/topic/op= en-iscsi/owLIZAXfgoA/unsubscribe. > To unsubscribe from this group and all its topics, send an email to open-i= scsi+unsubscribe@googlegroups.com. > To post to this group, send email to open-iscsi@googlegroups.com. > Visit this group at https://groups.google.com/group/open-iscsi. > For more options, visit https://groups.google.com/d/optout.