Re: SMBFS: recvmsg called within BH (was: Re: One more boobytrap needed for 2.2.15pre ?)

From: Andris Pavenis (andris@stargate.astr.lu.lv)
Date: Mon Feb 28 2000 - 07:09:59 EST


On Sat, 26 Feb 2000, Manfred Spraul wrote:
>
> Andris Pavenis wrote:
> >
> > On Wed, 23 Feb 2000, Manfred Spraul wrote:
> > > Andris, do you use smbfs?
> >
> > Yes.
> >
> > And there are also some problems with SMBFS (new with 2.2.X):
> > After some time connection to shares (shared from WinNT 4.0) is lost.
> > This problem appeared when I upgraded to 2.2.X. Therefore I used some
> > periodic task (once per some minutes called 'df -t smbfs') to keep
> > connection alive
> >
> Could you try the attached patch?
>
> Changes:
> * recvmsg() is now called from tq_scheduler, this should prevent the
> runqueue corruptions.
>
> * it seems that the keepalive implementation works again. I set
> "keepalive=1" in my smb.conf, and the connection remains alive for 5
> minute. tcpdump shows both the keepalive packet and the ack's.
>

I put keepalive=60 and removed periodic running of 'df -t smbfs' (earlier I did
it after each some minutes).

Results:
        - no attempts to remove from runqueue task which is not there in about
           1.5 days uptime (so it's likely that patch fixed of of my problems)

        - this morning I found that connections to WinNT shares were still lost
               (see output of 'dmesg' in attachment)

Andris

PS. I used samba-2.0.5a



-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue Feb 29 2000 - 21:00:19 EST