Intel-Wired-Lan Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Jesse Brandeburg <jesse.brandeburg@intel.com>
To: Michal Swiatkowski <michal.swiatkowski@linux.intel.com>,
	<intel-wired-lan@lists.osuosl.org>
Subject: Re: [Intel-wired-lan] [PATCH] ice: double lock on adev_mutex
Date: Thu, 12 Jan 2023 17:11:04 -0800	[thread overview]
Message-ID: <4662dbfc-171e-cdc2-7558-137567e05c25@intel.com> (raw)
In-Reply-To: <20230111110111.20099-1-michal.swiatkowski@linux.intel.com>

On 1/11/2023 3:01 AM, Michal Swiatkowski wrote:
 > Re: [Intel-wired-lan] [PATCH] ice: double lock on adev_mutex

Looks good but title should always contain PATCH net-next or PATCH net. 
Also doesn't hurt especially for net fixes to use --base net/master 
(assuming your remote for netdev net tree is 'net')


> Call trace:
> ice_set_channel() --> mutex_lock(adev_mutex)
> ice_vsi_recfg_qs()
> ice_pf_dcb_recfg()
> ice_send_event_to_aux() --> another mutex_lock(adev_mutex)

Ouch, didn't lockdep identify this? Let's hope it would find it if we 
turned it on.

> 
> This call trace is reached when user try to change queues amount using
> ethtool:
> $ ethtool -L enp24s0f0np0 tx 64 rx 32
> 
> Avoid double lock by unlocking after checking if RDMA is active.
> 
> Fixes: a49a2713f00e ("ice: Prevent set_channel from changing queues while RDMA active")
> Signed-off-by: Michal Swiatkowski <michal.swiatkowski@linux.intel.com>

thanks for fixing this!

_______________________________________________
Intel-wired-lan mailing list
Intel-wired-lan@osuosl.org
https://lists.osuosl.org/mailman/listinfo/intel-wired-lan

  reply	other threads:[~2023-01-13  1:11 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-11 11:01 [Intel-wired-lan] [PATCH] ice: double lock on adev_mutex Michal Swiatkowski
2023-01-13  1:11 ` Jesse Brandeburg [this message]
2023-01-13 15:48   ` Michal Swiatkowski
2023-01-19  9:43 ` G, GurucharanX

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=4662dbfc-171e-cdc2-7558-137567e05c25@intel.com \
    --to=jesse.brandeburg@intel.com \
    --cc=intel-wired-lan@lists.osuosl.org \
    --cc=michal.swiatkowski@linux.intel.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