mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Martin K. Petersen" <martin.petersen@oracle.com>
To: jejb@linux.vnet.ibm.com, Jason Yan <yanaijie@huawei.com>
Cc: "Martin K . Petersen" <martin.petersen@oracle.com>,
	linux-scsi@vger.kernel.org,
	syzbot+d44b35ecfb807e5af0b5@syzkaller.appspotmail.com,
	linux-kernel@vger.kernel.org, bvanassche@acm.org, hch@lst.de,
	hare@suse.com
Subject: Re: [PATCH v2] scsi: fix WARNING in scsi_alloc_sgtables
Date: Tue, 26 Jul 2022 23:15:13 -0400	[thread overview]
Message-ID: <165889169551.689.5999254456807328126.b4-ty@oracle.com> (raw)
In-Reply-To: <20220720025120.3226770-1-yanaijie@huawei.com>

On Wed, 20 Jul 2022 10:51:20 +0800, Jason Yan wrote:

> As explained in SG_IO howto[1]:
> 
> "If iovec_count is non-zero then 'dxfer_len' should be equal to the sum
> of iov_len lengths. If not, the minimum of the two is the transfer
> length."
> 
> When iovec_count is non-zero and dxfer_len is zero, the sg_io() just
> genarated a null bio, and finally caused a warning below. To fix it,
> skip generating a bio for this request if dxfer_len is zero.
> 
> [...]

Applied to 5.19/scsi-fixes, thanks!

[1/1] scsi: fix WARNING in scsi_alloc_sgtables
      https://git.kernel.org/mkp/scsi/c/d9a434fa0c12

-- 
Martin K. Petersen	Oracle Linux Engineering

      parent reply	other threads:[~2022-07-27  3:15 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-20  2:51 Jason Yan
2022-07-22 21:09 ` Bart Van Assche
2022-07-27  3:15 ` Martin K. Petersen [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=165889169551.689.5999254456807328126.b4-ty@oracle.com \
    --to=martin.petersen@oracle.com \
    --cc=bvanassche@acm.org \
    --cc=hare@suse.com \
    --cc=hch@lst.de \
    --cc=jejb@linux.vnet.ibm.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-scsi@vger.kernel.org \
    --cc=syzbot+d44b35ecfb807e5af0b5@syzkaller.appspotmail.com \
    --cc=yanaijie@huawei.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®