LKML Archive on
 help / Atom feed
* Re: 答复: Re: [PATCH] tty: max3100: Fix oops while 'cat/proc/tty/driver/ttyMAX'
       [not found] <>
@ 2018-09-14 11:28 ` Jiri Slaby
  0 siblings, 0 replies; 1+ messages in thread
From: Jiri Slaby @ 2018-09-14 11:28 UTC (permalink / raw)
  To: chen.lin5; +Cc: gregkh, linux-kernel, linux-serial

On 09/13/2018, 08:32 AM, wrote:
> but 'get_mctrl' is already protected by  the upper layer by spin lock,
> so, will the races happen?
> for example: in /drivers/tty/serial/serial_core.c 
>               spin_lock_irq(&uport->lock);
>               result |= uport->ops->get_mctrl(uport);
>               spin_unlock_irq(&uport->lock);

Right, but creation and destroy of the workqueue is not locked as far as
I can see. Am I missing something?

suse labs

^ permalink raw reply	[flat|nested] 1+ messages in thread

only message in thread, back to index

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <>
2018-09-14 11:28 ` 答复: Re: [PATCH] tty: max3100: Fix oops while 'cat/proc/tty/driver/ttyMAX' Jiri Slaby

LKML Archive on

Archives are clonable:
	git clone --mirror lkml/git/0.git
	git clone --mirror lkml/git/1.git
	git clone --mirror lkml/git/2.git
	git clone --mirror lkml/git/3.git
	git clone --mirror lkml/git/4.git
	git clone --mirror lkml/git/5.git
	git clone --mirror lkml/git/6.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 lkml lkml/ \
	public-inbox-index lkml

Newsgroup available over NNTP:

AGPL code for this site: git clone public-inbox