From: Greg KH <greg@kroah.com>
To: kernel-janitors@vger.kernel.org
Subject: Re: [PATCH 3/3] Correct: fix staging/spectra: don't use
Date: Thu, 22 Jul 2010 17:58:46 +0000 [thread overview]
Message-ID: <20100722175846.GA28783@kroah.com> (raw)
In-Reply-To: <1278734855.1725.52.camel@lenovo>
On Sat, Jul 10, 2010 at 12:07:35AM -0400, Javier Martinez Canillas wrote:
> Last patch has a style problem. Sending the correct one. Sorry for the noise
>
> Since BKL was removed from block ioctl handling code, locked_ioctl doesn't
> exist anymore.
>
> Using ioctl instead and doing the locking manually.
>
> >From b2bfc3da2c83066ad773df81787fc9416f5382c2 Mon Sep 17 00:00:00 2001
> From: Javier Martinez Canillas <martinez.javier@gmail.com>
> Date: Sat, 10 Jul 2010 00:00:16 -0400
> Subject: [PATCH 3/3] fix staging/spectra: don't use locked_ioctl
>
>
> Signed-off-by: Javier Martinez Canillas <martinez.javier@gmail.com>
> ---
> drivers/staging/spectra/ffsport.c | 15 ++++++++++++++-
> 1 files changed, 14 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/staging/spectra/ffsport.c b/drivers/staging/spectra/ffsport.c
> index 00a0ac0..7b34635 100644
> --- a/drivers/staging/spectra/ffsport.c
> +++ b/drivers/staging/spectra/ffsport.c
> @@ -27,6 +27,7 @@
> #include <linux/kthread.h>
> #include <linux/log2.h>
> #include <linux/init.h>
> +#include <linux/smp_lock.h>
>
> /**** Helper functions used for Div, Remainder operation on u64 ****/
>
> @@ -589,11 +590,23 @@ int GLOB_SBD_ioctl(struct block_device *bdev, fmode_t mode,
> return -ENOTTY;
> }
>
> +int GLOB_SBD_unlocked_ioctl(struct block_device *bdev, fmode_t mode,
> + unsigned int cmd, unsigned long arg)
> +{
> + int ret;
> +
> + lock_kernel();
No, we are trying to get rid of the lock_kernel() calls, care to just
make this a local lock instead?
thanks,
greg k-h
next prev parent reply other threads:[~2010-07-22 17:58 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-10 4:07 [PATCH 3/3] Correct: fix staging/spectra: don't use locked_ioctl Javier Martinez Canillas
2010-07-22 17:58 ` Greg KH [this message]
2010-07-22 18:16 ` Javier Martinez Canillas
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=20100722175846.GA28783@kroah.com \
--to=greg@kroah.com \
--cc=kernel-janitors@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