All of lore.kernel.org
 help / color / mirror / Atom feed
* read / write / close sync for device files
@ 2011-07-04 12:43 Amit Nagal
  2011-07-04 16:10 ` Greg KH
  0 siblings, 1 reply; 4+ messages in thread
From: Amit Nagal @ 2011-07-04 12:43 UTC (permalink / raw)
  To: kernelnewbies

Hi ,

if  a application is  doing read /write I/O with a  usb device ,  in 2
different threads in userspace ,

and at usb disconnect event ,  read thread returns with error and
application calls close() subsequently without waiting for write
thread to finish .

Do  the VFS upper layers  maintain locks that  take care that until
both read and write methods in usb driver donot finish and return with
error in kernel space

close will pend and usb driver release method will not be called ?

Regards
Amit Nagal

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

end of thread, other threads:[~2011-07-05 13:34 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-04 12:43 read / write / close sync for device files Amit Nagal
2011-07-04 16:10 ` Greg KH
2011-07-05  7:07   ` Amit Nagal
2011-07-05 13:34     ` Greg KH

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.