Re: NCPFS and brittle connections

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Petr Vandrovec <vandrove@...>
Cc: LKML <linux-kernel@...>
Date: Sunday, February 4, 2007 - 1:17 pm

Petr Vandrovec wrote:

Hmm.. I thought server->packet was protected until the packet was
completed, independent of the process that issued it. Looking closer I
see that this isn't quite the case.

How about this... We allocate two buffers at startup, one for outgoing
and one for incoming. Then we use these during the actual transmission,
copying back and forth as need. Then we just need to avoid the final
response copy if the process has gone belly up.

Now my next question in that case is, what is the purpose of
server->packet. Couldn't this buffer be provided by the caller like the
response buffer?

Rgds

-- 
     -- Pierre Ossman

  Linux kernel, MMC maintainer        http://www.kernel.org
  PulseAudio, core developer          http://pulseaudio.org
  rdesktop, core developer          http://www.rdesktop.org

-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
NCPFS and brittle connections, Pierre Ossman, (Thu Jan 4, 11:04 am)
Re: NCPFS and brittle connections, Petr Vandrovec, (Thu Jan 4, 1:26 pm)
Re: NCPFS and brittle connections, Pierre Ossman, (Thu Jan 4, 3:30 pm)
Re: NCPFS and brittle connections, Petr Vandrovec, (Fri Jan 5, 3:43 am)
Re: NCPFS and brittle connections, Pierre Ossman, (Wed Jan 24, 11:27 am)
Re: NCPFS and brittle connections, Petr Vandrovec, (Wed Jan 24, 1:49 pm)
Re: NCPFS and brittle connections, Pierre Ossman, (Wed Jan 24, 6:01 pm)
Re: NCPFS and brittle connections, Petr Vandrovec, (Thu Jan 25, 4:22 am)
Re: NCPFS and brittle connections, Pierre Ossman, (Thu Jan 25, 6:20 am)
Re: NCPFS and brittle connections, Petr Vandrovec, (Sun Feb 4, 2:00 am)
Re: NCPFS and brittle connections, Pierre Ossman, (Sun Feb 4, 1:17 pm)
Re: NCPFS and brittle connections, Petr Vandrovec, (Sun Feb 4, 11:50 pm)
Re: NCPFS and brittle connections, Pierre Ossman, (Mon Feb 19, 6:37 am)
Re: NCPFS and brittle connections, Petr Vandrovec, (Mon Feb 19, 10:47 pm)
Re: NCPFS and brittle connections, Pierre Ossman, (Tue Feb 20, 2:37 am)
Re: NCPFS and brittle connections, Pierre Ossman, (Thu Feb 1, 4:39 am)