[PATCH 2/2] sysfs/kernfs: make read requests on pre-alloc files use the buffer.

2014-10-12 Thread NeilBrown
To match the previous patch which used the pre-alloc buffer for writes, this patch causes reads to use the same buffer. This is not strictly necessary as the current seq_read() will allocate on first read, so user-space can trigger the required pre-alloc. But consistency is valuable. The read

[PATCH 2/2] sysfs/kernfs: make read requests on pre-alloc files use the buffer.

2014-10-12 Thread NeilBrown
To match the previous patch which used the pre-alloc buffer for writes, this patch causes reads to use the same buffer. This is not strictly necessary as the current seq_read() will allocate on first read, so user-space can trigger the required pre-alloc. But consistency is valuable. The read

Re: [PATCH 2/2] sysfs/kernfs: make read requests on pre-alloc files use the buffer.

2014-10-09 Thread Tejun Heo
On Thu, Oct 09, 2014 at 10:57:06AM +1100, NeilBrown wrote: > To match the previous patch which used the pre-alloc buffer for > writes, this patch causes reads to use the same buffer. > This is not strictly necessary as the current seq_read() will allocate > on first read, so user-space can trigger

Re: [PATCH 2/2] sysfs/kernfs: make read requests on pre-alloc files use the buffer.

2014-10-09 Thread Tejun Heo
On Thu, Oct 09, 2014 at 10:57:06AM +1100, NeilBrown wrote: To match the previous patch which used the pre-alloc buffer for writes, this patch causes reads to use the same buffer. This is not strictly necessary as the current seq_read() will allocate on first read, so user-space can trigger the

[PATCH 2/2] sysfs/kernfs: make read requests on pre-alloc files use the buffer.

2014-10-08 Thread NeilBrown
To match the previous patch which used the pre-alloc buffer for writes, this patch causes reads to use the same buffer. This is not strictly necessary as the current seq_read() will allocate on first read, so user-space can trigger the required pre-alloc. But consistency is valuable. The read

[PATCH 2/2] sysfs/kernfs: make read requests on pre-alloc files use the buffer.

2014-10-08 Thread NeilBrown
To match the previous patch which used the pre-alloc buffer for writes, this patch causes reads to use the same buffer. This is not strictly necessary as the current seq_read() will allocate on first read, so user-space can trigger the required pre-alloc. But consistency is valuable. The read

Re: [PATCH 2/2] sysfs/kernfs: make read requests on pre-alloc files use the buffer.

2014-10-05 Thread Tejun Heo
On Tue, Sep 30, 2014 at 12:33:34PM +1000, NeilBrown wrote: > To match the previous patch which used the pre-alloc buffer for > writes, this patch causes reads to use the same buffer. > This is not strictly necessary as the current seq_read() will allocate > on first read, so user-space can trigger

Re: [PATCH 2/2] sysfs/kernfs: make read requests on pre-alloc files use the buffer.

2014-10-05 Thread Tejun Heo
On Tue, Sep 30, 2014 at 12:33:34PM +1000, NeilBrown wrote: To match the previous patch which used the pre-alloc buffer for writes, this patch causes reads to use the same buffer. This is not strictly necessary as the current seq_read() will allocate on first read, so user-space can trigger the

[PATCH 2/2] sysfs/kernfs: make read requests on pre-alloc files use the buffer.

2014-09-29 Thread NeilBrown
To match the previous patch which used the pre-alloc buffer for writes, this patch causes reads to use the same buffer. This is not strictly necessary as the current seq_read() will allocate on first read, so user-space can trigger the required pre-alloc. But consistency is valuable. The read

[PATCH 2/2] sysfs/kernfs: make read requests on pre-alloc files use the buffer.

2014-09-29 Thread NeilBrown
To match the previous patch which used the pre-alloc buffer for writes, this patch causes reads to use the same buffer. This is not strictly necessary as the current seq_read() will allocate on first read, so user-space can trigger the required pre-alloc. But consistency is valuable. The read