From: Jakub Kicinski <kuba@kernel.org>
To: "Sokolowski, Jan" <jan.sokolowski@intel.com>
Cc: "Nguyen, Anthony L" <anthony.l.nguyen@intel.com>,
"davem@davemloft.net" <davem@davemloft.net>,
"pabeni@redhat.com" <pabeni@redhat.com>,
"edumazet@google.com" <edumazet@google.com>,
"Jaron, MichalX" <michalx.jaron@intel.com>,
"netdev@vger.kernel.org" <netdev@vger.kernel.org>,
"Jagielski, Jedrzej" <jedrzej.jagielski@intel.com>,
"Szlosek, Marek" <marek.szlosek@intel.com>
Subject: Re: [PATCH net 2/2] ice: Fix call trace with null VSI during VF reset
Date: Wed, 17 Aug 2022 08:47:48 -0700 [thread overview]
Message-ID: <20220817084748.7ed9ee99@kernel.org> (raw)
In-Reply-To: <PH7PR11MB5819695C8B5C6E5F7D0500E1996A9@PH7PR11MB5819.namprd11.prod.outlook.com>
On Wed, 17 Aug 2022 13:31:00 +0000 Sokolowski, Jan wrote:
> I'd like to send this response in Michal Jaron's name, as he currently cannot respond to this email.
>
> Generally you are right, it is better idea to try to keep the system
> in a consistent state than adding "if NULL return;" but I don't think
> it will work here. This "if NULL return;" is here because of race
> between two resets and I don't think we can guarantee that this race
> will be not present if we flush the service work before reset. The
> problem is that vf reset is called in the same time from vf on vm and
> from pf. When reset from vf is called and reset form pf don't clear
> rings yet we must go into ice_reset_vf and clear those rings without
> triggering second reset. If we don't clear rings there we may trigger
> page_frag_cache_drain crash related to writing data to unmapped
> queues. In such cases if there are no vsis we don't need to do this
> and this WARN_ON is not necessary, but we need to check it anyway.
Hm, I assumed there's some synchronization here which we can use
to prevent the race. After all _something_ must ensure the pointer
returned from ice_get_vf_vsi() will not go away, for instance.
But I'm obviously speculating and Dave already applied the patches
so moving on.. :)
next prev parent reply other threads:[~2022-08-17 15:47 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-11 16:17 [PATCH net 0/2][pull request] Intel Wired LAN Driver Updates 2022-08-11 (ice) Tony Nguyen
2022-08-11 16:17 ` [PATCH net 1/2] ice: Fix VSI rebuild WARN_ON check for VF Tony Nguyen
2022-08-11 16:17 ` [PATCH net 2/2] ice: Fix call trace with null VSI during VF reset Tony Nguyen
2022-08-13 0:13 ` Jakub Kicinski
2022-08-17 13:31 ` Sokolowski, Jan
2022-08-17 15:47 ` Jakub Kicinski [this message]
2022-08-15 10:40 ` [PATCH net 0/2][pull request] Intel Wired LAN Driver Updates 2022-08-11 (ice) patchwork-bot+netdevbpf
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=20220817084748.7ed9ee99@kernel.org \
--to=kuba@kernel.org \
--cc=anthony.l.nguyen@intel.com \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=jan.sokolowski@intel.com \
--cc=jedrzej.jagielski@intel.com \
--cc=marek.szlosek@intel.com \
--cc=michalx.jaron@intel.com \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.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 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.