Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1328438 > unrolled thread

Re: [PATCH V2] tty/n_gsm.c: use gsm->num to remove mux itself from gsm_mux[]

Started byGreg Kroah-Hartman <gregkh@linuxfoundation.org>
First post2016-02-07 08:40 +0100
Last post2016-02-07 15:10 +0100
Articles 2 — 2 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH V2] tty/n_gsm.c: use gsm->num to remove mux itself from  gsm_mux[] Greg Kroah-Hartman <gregkh@linuxfoundation.org> - 2016-02-07 08:40 +0100
    Re: [PATCH V2] tty/n_gsm.c: use gsm->num to remove mux itself from  gsm_mux[] Pan Xinhui <xinhui.pan@linux.vnet.ibm.com> - 2016-02-07 15:10 +0100

#1328438 — Re: [PATCH V2] tty/n_gsm.c: use gsm->num to remove mux itself from gsm_mux[]

FromGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Date2016-02-07 08:40 +0100
SubjectRe: [PATCH V2] tty/n_gsm.c: use gsm->num to remove mux itself from gsm_mux[]
Message-ID<qZs6S-2RU-5@gated-at.bofh.it>
On Tue, Jan 05, 2016 at 03:42:52PM +0800, Pan Xinhui wrote:
> From: Pan Xinhui <xinhui.pan@linux.vnet.ibm.com>
> 
> There is one filed gsm->num to store mux's index of gsm_mux[]. So use
> gsm->num to remove itself from gsm_mux[] instead of the for-loop
> traverse in gsm_cleanup_mux().
> 
> Signed-off-by: Pan Xinhui <xinhui.pan@linux.vnet.ibm.com>
> Reviewed-by: Alan Cox <alan@linux.intel.com>
> ---
> change from V1:
> 	lock is also held for the if()
> ---
>  drivers/tty/n_gsm.c | 13 +++++--------
>  1 file changed, 5 insertions(+), 8 deletions(-)

Doesn't apply to my tty-next branch of the tty.git tree :(

[toc] | [next] | [standalone]


#1328491

FromPan Xinhui <xinhui.pan@linux.vnet.ibm.com>
Date2016-02-07 15:10 +0100
Message-ID<qZyck-7ez-17@gated-at.bofh.it>
In reply to#1328438
hi, Greg
	thanks for your reply.
On 2016/2/7 15:29, Greg Kroah-Hartman wrote:
> On Tue, Jan 05, 2016 at 03:42:52PM +0800, Pan Xinhui wrote:
>> From: Pan Xinhui <xinhui.pan@linux.vnet.ibm.com>
>>
>> There is one filed gsm->num to store mux's index of gsm_mux[]. So use
>> gsm->num to remove itself from gsm_mux[] instead of the for-loop
>> traverse in gsm_cleanup_mux().
>>
>> Signed-off-by: Pan Xinhui <xinhui.pan@linux.vnet.ibm.com>
>> Reviewed-by: Alan Cox <alan@linux.intel.com>
>> ---
>> change from V1:
>> 	lock is also held for the if()
>> ---
>>   drivers/tty/n_gsm.c | 13 +++++--------
>>   1 file changed, 5 insertions(+), 8 deletions(-)
>
> Doesn't apply to my tty-next branch of the tty.git tree :(
>

Sorry for not telling you one important information.
This patch is on top of Jiri's patch, "TTY: n_gsm, fix false positive WARN_ON", see https://patchwork.kernel.org/patch/7692181/
Looks like Jiri's patch is still not in your tree.

Hi, Jiri
	Could I make a new patch on top of the mainline's codes first then you prepare your patch on top of mine?
I will appreciate that if you have a better solution :)


thanks
xinhui

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web