Another comment on relay_write fast pathing
> +static inline unsigned relay_write(struct rchan *chan,
> +const void *data,
> +unsigned length)
> +{
> + unsigned long flags;
> + struct rchan_buf *buf = relay_get_buf(chan, smp_p
> The main reason would be that length would be 0 only if the buffers
> were full, so the caller can suspend writing if it sees that, until
> e.g. a daemon catches up.
Would be? Is there actually any caller doing this?
Better eliminate it and if someone really does it add a separate function
tha
Andi Kleen writes:
>
> > +
> > + local_irq_save(flags);
> > + if (unlikely(buf->offset + length > chan->subbuf_size))
> > + length = relay_switch_subbuf(buf, length);
> > + memcpy(buf->data + buf->offset, data, length);
> > + buf->offset += length;
> > + local_irq_restore(fla
Just a minor comment, not reading it all.
On Fri, Feb 04, 2005 at 02:17:37PM -0600, Tom Zanussi wrote:
_write - write data into the channel
> + * @chan: relay channel
> + * @data: data to be written
> + * @length: number of bytes to write
> + *
> + * Returns the number of bytes written, 0
Christoph Hellwig writes:
> First set of comments. Mostly ignores the actual filesystem sematics
> bits, that'll come next.
>
>
> > +#
> > +# relayfs Makefile
> > +#
>
> probably superflous comment ;-)
>
> > + mem = vmap(*page_array, *page_count, GFP_KERNEL, PAGE_KERNEL);
>
> Do
Christoph Hellwig writes:
> in the filesystem path especially relayfs_create_entry and the functions
> called by it seem overly complex, probably because copying from ramfs
> which allows namespace operations from userland. See the totally untested
> code below for how it could be done more cl
in the filesystem path especially relayfs_create_entry and the functions
called by it seem overly complex, probably because copying from ramfs
which allows namespace operations from userland. See the totally untested
code below for how it could be done more cleanly.
What I really dislike is the c
First set of comments. Mostly ignores the actual filesystem sematics
bits, that'll come next.
> +#
> +# relayfs Makefile
> +#
probably superflous comment ;-)
> + mem = vmap(*page_array, *page_count, GFP_KERNEL, PAGE_KERNEL);
Do you really need to vmap it, and eat up vmallocspace and TLB e
8 matches
Mail list logo