From: Stefan Assmann <sassmann@kpanic.de>
To: intel-wired-lan@osuosl.org
Subject: [Intel-wired-lan] [PATCH] iavf: fix locking of critical sections
Date: Wed, 17 Mar 2021 19:14:52 +0100 [thread overview]
Message-ID: <e28db42e-a55a-6f7f-7622-add296b1035e@kpanic.de> (raw)
In-Reply-To: <DM6PR11MB3113AB6CE1D93EF28B3A7345876A9@DM6PR11MB3113.namprd11.prod.outlook.com>
On 17.03.21 18:27, Laba, SlawomirX wrote:
> We were discussing introducing mutexes in those critical spots for a long time now (in my team).
> Stefan, if you find time, you are most welcome to offer your solution with mutexes.
Hi Slawek,
I'll work on that conversion once the current patch went through Intel
testing and is merged. Smaller patches, smaller steps are usually
better, so let's make one change at a time.
Thanks!
Stefan
> Slawek
>
>
> -----Original Message-----
> From: Stefan Assmann <sassmann@kpanic.de>
> Sent: Wednesday, March 17, 2021 8:50 AM
> To: Brandeburg, Jesse <jesse.brandeburg@intel.com>; Jakub Kicinski <kuba@kernel.org>
> Cc: intel-wired-lan at lists.osuosl.org; netdev at vger.kernel.org; Nguyen, Anthony L <anthony.l.nguyen@intel.com>; Yang, Lihong <lihong.yang@intel.com>; Laba, SlawomirX <slawomirx.laba@intel.com>; Nunley, Nicholas D <nicholas.d.nunley@intel.com>
> Subject: Re: [PATCH] iavf: fix locking of critical sections
>
> On 16.03.21 23:02, Jesse Brandeburg wrote:
>> Jakub Kicinski wrote:
>>>>> I personally think that the overuse of flags in Intel drivers
>>>>> brings nothing but trouble. At which point does it make sense to
>>>>> just add a lock / semaphore here rather than open code all this
>>>>> with no clear semantics? No code seems to just test the
>>>>> __IAVF_IN_CRITICAL_TASK flag, all the uses look like poor man's
>>>>> locking at a quick grep. What am I missing?
>>>>
>>>> I agree with you that the locking could be done with other locking
>>>> mechanisms just as good. I didn't invent the current method so I'll
>>>> let Intel comment on that part, but I'd like to point out that what
>>>> I'm making use of is fixing what is currently in the driver.
>>>
>>> Right, I should have made it clear that I don't blame you for the
>>> current state of things. Would you mind sending a patch on top of
>>> this one to do a conversion to a semaphore?
>
> Sure, I'm happy to help working on the conversion once the current issue is resolved.
>
>>> Intel folks any opinions?
>>
>> I know Slawomir has been working closely with Stefan on figuring out
>> the right ways to fix this code. Hopefully he can speak for himself,
>> but I know he's on Europe time.
>>
>> As for conversion to mutexes I'm a big fan, and as long as we don't
>> have too many collisions with the RTNL lock I think it's a reasonable
>> improvement to do, and if Stefan doesn't want to work on it, we can
>> look into whether Slawomir or his team can.
>
> I'd appreciate to be involved.
> Thanks!
>
> Stefan
>
next prev parent reply other threads:[~2021-03-17 18:14 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-16 10:01 [Intel-wired-lan] [PATCH] iavf: fix locking of critical sections Stefan Assmann
2021-03-16 17:14 ` Jakub Kicinski
2021-03-16 17:27 ` Stefan Assmann
2021-03-16 20:29 ` Jakub Kicinski
2021-03-16 22:02 ` Jesse Brandeburg
2021-03-17 7:49 ` Stefan Assmann
2021-03-17 17:27 ` Laba, SlawomirX
2021-03-17 18:14 ` Stefan Assmann [this message]
2021-07-06 8:07 ` Jankowski, Konrad0
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=e28db42e-a55a-6f7f-7622-add296b1035e@kpanic.de \
--to=sassmann@kpanic.de \
--cc=intel-wired-lan@osuosl.org \
/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