All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Mahanta Jambigi" <mjambigi@linux.ibm.com>
Cc: linux-s390@vger.kernel.org, linux-rdma@vger.kernel.org,
	"Heiko Carstens" <hca@linux.ibm.com>,
	"Vasily Gorbik" <gor@linux.ibm.com>,
	"Alexander Gordeev" <agordeev@linux.ibm.com>,
	"Christian Borntraeger" <borntraeger@linux.ibm.com>
Subject: Re: [PATCH net v2] net/smc: unmap the sg table when a DMA map coalesces entries
Date: Sat, 05 Dec 2026 05:57:03 +0000	[thread overview]
Message-ID: <sashiko-outbox-251120@kernel.org> (raw)
In-Reply-To: <20261204055639.228261-1-mjambigi@linux.ibm.com>

Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] net/smc: commit message omits bug discovery and testing details
--

commit e876f4b330ad7475d8d95779692e0fd3a6bae786
Author: Mahanta Jambigi <mjambigi@linux.ibm.com>

> net/smc: unmap the sg table when a DMA map coalesces entries
>
> When a device coalesces the entries of a virtually contiguous buffer,
> ib_dma_map_sg() maps fewer entries than requested. smcr_buf_map_link()
> fails the link with -EAGAIN but only frees the sg table, leaving the DMA
> mapping behind.
>
> Unmap the partial mapping in smc_ib_buf_map_sg() and return 0 or an
> error, so the caller only has to free the table on failure.
>
> Fixes: b8d199451c99 ("net/smc: Allow virtually contiguous sndbufs or RMBs for SMC-R")
> Signed-off-by: Mahanta Jambigi <mjambigi@linux.ibm.com>

[Severity: Low]
As reported by netdev-bot+sinfo@kernel.org on v1 [1], the commit message
still omits how this issue was discovered, whether it was reproduced or is
theoretical, and how the fix was tested.

Documentation/process/maintainer-netdev.rst requires bug-fix commit messages
to include these details.

[1] https://lore.kernel.org/r/179630242773.3305.6082997498566795063@kernel.org

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261204055639.228261-1-mjambigi@linux.ibm.com?part=1

      parent reply	other threads:[~2026-12-05  5:57 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-04  5:56 [PATCH net v2] net/smc: unmap the sg table when a DMA map coalesces entries Mahanta Jambigi
2026-12-04  6:02 ` netdev-bot+sinfo
2026-12-05  1:13 ` Dust Li
2026-12-05  5:57 ` sashiko-bot [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=sashiko-outbox-251120@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=agordeev@linux.ibm.com \
    --cc=borntraeger@linux.ibm.com \
    --cc=gor@linux.ibm.com \
    --cc=hca@linux.ibm.com \
    --cc=linux-rdma@vger.kernel.org \
    --cc=linux-s390@vger.kernel.org \
    --cc=mjambigi@linux.ibm.com \
    --cc=sashiko-reviews@lists.linux.dev \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.