All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Praveen Kumar Kannoju" <praveen.kannoju@oracle.com>,
	linux-rdma@vger.kernel.org
Subject: Re: [PATCH] IB/mlx4: Avoid requeueing executing CM timeout work
Date: Wed, 14 Oct 2026 12:23:42 +0000	[thread overview]
Message-ID: <sashiko-outbox-171271@kernel.org> (raw)
In-Reply-To: <20261014121344.100048-1-praveen.kannoju@oracle.com>

> id->scheduled_delete is set by schedule_delayed() itself.  It is used
> in two cases after the RTU timeout support was added:
> 
> * A new id_map_entry is created, and a 60-second RTU timeout is
>   scheduled.
> * DREQ or REJ is received for an existing entry, and the normal
>   30-second teardown timeout is scheduled or adjusted.
> 
> The following race is possible when the RTU timeout expires while a
> DREQ or REJ is handled:
> 
>  CPU 0: timeout work                         CPU 1: DREQ/REJ handler
>  --------------------                        -----------------------
>  RTU timer expires
>  timeout callback starts
> [ ... ]
> cancel_delayed_work_sync(), because the timeout callback may be waiting
> for id_map_lock, which is held by the caller.
> 
> Fixes: fa09adf4231f ("IB/mlx4: Fix stale CM id_map entries when RTU is never received")
> Signed-off-by: Praveen Kumar Kannoju <praveen.kannoju@oracle.com>

Sashiko has reviewed this patch and found no issues. It looks great!

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261014121344.100048-1-praveen.kannoju@oracle.com?part=1


      reply	other threads:[~2026-10-14 12:23 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-14 12:13 [PATCH] IB/mlx4: Avoid requeueing executing CM timeout work Praveen Kumar Kannoju
2026-10-14 12:23 ` 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-171271@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=linux-rdma@vger.kernel.org \
    --cc=praveen.kannoju@oracle.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.