linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* locks inside receive_buf
@ 2011-03-30 12:21 Pavan Savoy
  2011-03-31 10:25 ` Alan Cox
  0 siblings, 1 reply; 10+ messages in thread
From: Pavan Savoy @ 2011-03-30 12:21 UTC (permalink / raw)
  To: linux-kernel, alan

Hi,

Does holding a lock make any sense inside the line discipline's
ops->receive_buf?
I see the locks being held and released - during some calls like
flush_to_ldisc, which end up calling receive_buf....


and yes, I would like to have a lock because, there are other
functions in my ldisc driver executed in process context ...
Is there some hints as to what should be the do's and don'ts inside
the ldisc ops functions ? (say tty_wakeup ...)

regards,
Pavan

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

end of thread, other threads:[~2011-05-17 11:30 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-30 12:21 locks inside receive_buf Pavan Savoy
2011-03-31 10:25 ` Alan Cox
2011-03-31 11:18   ` Pavan Savoy
2011-03-31 14:33     ` Steven Rostedt
2011-04-01  7:12       ` Pavan Savoy
2011-04-01 13:46         ` Steven Rostedt
2011-04-05 11:13           ` Pavan Savoy
2011-04-05 13:04             ` Steven Rostedt
2011-04-06  8:56               ` Pavan Savoy
2011-05-17 11:30                 ` Pavan Savoy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).