USB: make usb-skeleton honor O_NONBLOCK in write path
commit798199867385417ba6494472e39c016e3340758c
authorOliver Neukum <oliver@neukum.org>
Wed, 9 Sep 2009 08:23:35 +0000 (9 10:23 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 23 Sep 2009 13:46:40 +0000 (23 06:46 -0700)
tree0be421533a966075130254d41ba0ae7ea0a25e71
parente7389cc9a7ff7c6e760e741c81a751c834f7d145
USB: make usb-skeleton honor O_NONBLOCK in write path

usb:usb-skeleton: honor O_NONBLOCK in write path

nonblocking writes are allowed by using down_trylock if necessary
to reserve an URB

Signed-off-by: Oliver Neukum <oliver@neukum.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/usb-skeleton.c