From: channing <chao.bi@intel.com>
To: Greg KH <gregkh@linuxfoundation.org>
Cc: linux-kernel@vger.kernel.org, fengguang.wu@intel.com
Subject: Re: [PATCH V2] n_gsm: race between ld close and gsmtty open
Date: Tue, 26 Nov 2013 11:35:14 +0800 [thread overview]
Message-ID: <1385436914.7741.40.camel@bichao> (raw)
In-Reply-To: <20131126025432.GA3379@kroah.com>
On Mon, 2013-11-25 at 18:54 -0800, Greg KH wrote:
> On Tue, Nov 26, 2013 at 11:14:05AM +0800, channing wrote:
> > This patch is try to avoid it by:
> >
> > 1) in n_gsm driver, use a global gsm mutex lock to avoid gsm_dlci_release() run in
> > parallel with gsmtty_install();
The commit is updated here than formal patch set: we use mutex lock in
patch V2, while use spin lock in patch V1.
> >
> > 2) Increase dlci's ref count in gsmtty_install() instead of in gsmtty_open(), the
> > purpose is to prevent gsm_dlci_release() releasing dlci after gsmtty_install()
> > allocats dlci but before gsmtty_open increases dlci's ref count;
> >
> > 3) Decrease dlci's ref count in gsmtty_remove(), a tty framework API, this is the
> > opposite process of step 2).
> >
> > Signed-off-by: Chao Bi <chao.bi@intel.com>
> > Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
>
> I have not signed off on this additional patch.
>
> What is different from the previous version? That information needs to
> be somewhere, otherwise I'm just going to guess and say this is the same
> as your last one, which was incorrect.
The difference with previous one is to use a mutex instead of spin lock
to avoid race, purpose is to avoid sleep in atomic context. I've also
updated commit a little as above.
>
> Also, please fix your "From:" line in your email client to match your
> Signed-off-by: line, or else add the proper "From:" line to your patch,
> as the Documentation/SubmittingPatches file says.
>
> Care to try again?
Yes, I'll correct it. thanks.
>
> greg k-h
next prev parent reply other threads:[~2013-11-26 3:05 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-26 3:14 [PATCH V2] n_gsm: race between ld close and gsmtty open channing
2013-11-26 2:54 ` Greg KH
2013-11-26 3:35 ` channing [this message]
2013-11-26 3:16 ` Greg KH
2013-11-26 3:53 ` channing
-- strict thread matches above, loose matches on Subject: below --
2013-10-17 7:08 [PATCH v2] " channing
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=1385436914.7741.40.camel@bichao \
--to=chao.bi@intel.com \
--cc=fengguang.wu@intel.com \
--cc=gregkh@linuxfoundation.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 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.