Re: [PATCH] tcp: do not promote SPLICE_F_NONBLOCK to socket O_NONBLOCK

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Octavian Purdila <opurdila@...>
Cc: <netdev@...>, <linux-kernel@...>, <axboe@...>
Date: Friday, July 18, 2008 - 10:32 am

On Fri, Jul 18, 2008 at 05:04:17PM +0300, Octavian Purdila (opurdila@ixiacom.com) wrote:

Why? There is clearly documented behaviour of the call, it works exactly
like it is supposed to work - it tries to be non-blocking everywhere
where it can, but not always, that's why there is a sentence which
states that even with given flag call may block.


If there are 20 packets in the queue it will get 16 and put them into
another end (in the next call in your example). Where will it block?


I really do not think that there is any kind of problem with current
behaviour, and thus there is no need to introduce additional flags
and/or change existing behaviour, but I can understand you that existing
approach does not met your expectation, so you are trying to change it.
I've added Jens Axboe to copy list, who is responsible for splice
design.

Btw, you are also trying to change existing userspace API, which may be
very much forbidden at this stage.

-- 
	Evgeniy Polyakov
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH] tcp: do not promote SPLICE_F_NONBLOCK to socket ..., Evgeniy Polyakov, (Thu Jul 17, 10:21 am)
Re: [PATCH] tcp: do not promote SPLICE_F_NONBLOCK to socket ..., Octavian Purdila, (Thu Jul 17, 10:47 am)
Re: [PATCH] tcp: do not promote SPLICE_F_NONBLOCK to socket ..., Octavian Purdila, (Fri Jul 18, 10:04 am)
Re: [PATCH] tcp: do not promote SPLICE_F_NONBLOCK to socket ..., Evgeniy Polyakov, (Fri Jul 18, 10:32 am)
Re: [PATCH] tcp: do not promote SPLICE_F_NONBLOCK to socket ..., Octavian Purdila, (Fri Jul 18, 11:50 am)
Re: [PATCH] tcp: do not promote SPLICE_F_NONBLOCK to socket ..., Evgeniy Polyakov, (Fri Jul 18, 12:00 pm)