mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Németh Márton" <nm127@freemail.hu>
To: gregkh <gregkh@suse.de>, devel@driverdev.osuosl.org
Cc: LKML <linux-kernel@vger.kernel.org>
Subject: Re: usbip: somtimes stalls at kernel_recvmsg()
Date: Thu, 16 Dec 2010 08:31:34 +0100	[thread overview]
Message-ID: <4D09C056.5020305@freemail.hu> (raw)
In-Reply-To: <4D06A004.8070502@freemail.hu>

Németh Márton wrote:
> I'm working with usbip and I sometimes see a stall when I run
> the "lsusb" command from the userspace. I added some debug messages
> and it seems that the kernel_recvmsg() in
> http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=blob;f=drivers/staging/usbip/usbip_common.c;h=210ef16bab8d271a52e5d36cd1994aad57ad99e1;hb=HEAD
> 
> This is the only place I could find where the TCP messages are arriving in
> the usbip code.
> 
> What happens if a message does not arrive? Does it stall forever? If
> yes, how can the kernel_recvmsg() call changed to handle some timeout?

I found that the userspace manpage of recvmsg(2) ("man recvmsg") contains description
of the "flags" parameter. I suppose the parameters and behaviour of the userspace
recvmsg() is the same as the kernelspace kernel_recvmsg().


	Márton Németh

  reply	other threads:[~2010-12-16  7:31 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-13 22:36 Németh Márton
2010-12-16  7:31 ` Németh Márton [this message]
2010-12-16 22:50   ` Max Vozeler
2010-12-17  5:45     ` usbip: sometimes " Németh Márton
2010-12-20 22:22       ` Max Vozeler
2010-12-21  8:03         ` Németh Márton
2010-12-22 19:49           ` Németh Márton

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4D09C056.5020305@freemail.hu \
    --to=nm127@freemail.hu \
    --cc=devel@driverdev.osuosl.org \
    --cc=gregkh@suse.de \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome