Re: [Nbd] Random NBD connection shutdowns...
- To: Paul Clements <paul.clements@...856...>
- Cc: nbd-general@lists.sourceforge.net
- Subject: Re: [Nbd] Random NBD connection shutdowns...
- From: Michal Belczyk <belczyk@...1274...>
- Date: Mon, 11 Mar 2013 23:45:38 +0100
- Message-id: <20130311224538.GA96847@...1273...>
- In-reply-to: <CAECXXi67qqpdwfm7snpeAwud5vHvG8futR4DDRtKPtiE=MMiqQ@...18...>
- References: <20130303145302.GF12842@...1273...> <20130310215319.GC14782@...1273...> <CAECXXi67qqpdwfm7snpeAwud5vHvG8futR4DDRtKPtiE=MMiqQ@...18...>
On Mon, Mar 11, 2013 at 05:02:00PM -0400, Paul Clements wrote:
> On Sun, Mar 10, 2013 at 5:53 PM, Michal Belczyk <belczyk@...1274...> wrote:
> > On Sun, Mar 03, 2013 at 03:53:02PM +0100, Michal Belczyk wrote:
> >> Hi there,
> >>
> >> a few months ago I noticed that nbd-client (kmod code actually) randomly
> >> shuts down the connection during heavy parallel xdd benchmarks in my
> >> local setup. The following change to nbd.c fixed that for me:
> >>
> >> @@ -303,9 +303,13 @@
> >> struct request *req, *tmp;
> >> int err;
> >>
> >> +wait:
> >> err = wait_event_interruptible(nbd->active_wq, nbd->active_req != xreq);
> >> - if (unlikely(err))
> >> + if (unlikely(err)) {
> >> + if (err == -ERESTARTSYS)
> >> + goto wait;
> >> goto out;
> >> + }
> >>
> >> Please consider pushing it upstream.
> >> Thanks!
> >
> > I was able to hit this bug with the stock nbd-server, it is NOT
> > bnbd-specific. If this mailing list is the wrong place to submit NBD
> > driver bugs, then please point me to the proper location, although I
> > believe there are kernel people signed up here as well...
>
> Thanks, I'll reformat and send upstream...
Thank you!
--
Michal Belczyk Sr.
Reply to: