From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
To: Hugo Lefeuvre <hle@owl.eu.com>
Cc: kernelnewbies@kernelnewbies.org, devel@driverdev.osuosl.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] staging: pi433: add rw semaphore fixing concurrency issues
Date: Fri, 1 Jun 2018 18:09:54 +0200 [thread overview]
Message-ID: <20180601160954.GA4895@kroah.com> (raw)
In-Reply-To: <20180601125037.GA2339@hle-laptop.local>
On Fri, Jun 01, 2018 at 08:50:37AM -0400, Hugo Lefeuvre wrote:
> Add a rw semaphore fixing potential NULL pointer dereferences in the
> pi433 driver.
Unless you can measure the performance difference, do not use a rw
semaphore, just use a normal mutex please. Odds are it will be faster
in the end and take up less space.
So please test, or if you can't test, just use a mutex.
thanks,
greg k-h
next prev parent reply other threads:[~2018-06-01 16:10 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-06-01 12:50 Hugo Lefeuvre
2018-06-01 13:32 ` valdis.kletnieks
2018-06-01 13:51 ` Hugo Lefeuvre
2018-06-01 16:09 ` Greg Kroah-Hartman [this message]
2018-06-02 18:08 ` Hugo Lefeuvre
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=20180601160954.GA4895@kroah.com \
--to=gregkh@linuxfoundation.org \
--cc=devel@driverdev.osuosl.org \
--cc=hle@owl.eu.com \
--cc=kernelnewbies@kernelnewbies.org \
--cc=linux-kernel@vger.kernel.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
all inboxes | Powered by JetHome®