Skip to content

output buffer write fops fixes

Nuno Sá linux-iio 1 version Applied

Status from this message: Applied to the fixes-togreg branch of iio.git and marked for stable.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 8 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/3iio: buffer: correctly return bytes written in output buffersdrivers/iio/industrialio-buffer.c+1 -12 replies
2/3iio: buffer: make sure O_NONBLOCK is respecteddrivers/iio/industrialio-buffer.c+11 -82 replies
3/3iio: buffer: fix coding style warningsdrivers/iio/industrialio-buffer.c+49 -494 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchLars-Peter Clausen
1/3R-b
2/3R-b
3/3R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/3] output buffer write fops fixes

This patchset adds some fixes for output buffers:

1) Always return the number of bytes that we effectively copied;
2) Make sure we never block if O_NONBLOCK is passed.

With 2) some refactoring was done on the loop which makes it (IMHO) a bit neater. Also note all of this is by code inspection and not really tested on a real system. Even though the changes are fairly trivial, I do intend to run a small test to make sure nothing basic broke.

Since I was touching this file, I jut felt I could fix all the checkpatch complains :)

Nuno Sá (3):
iio: buffer: correctly return bytes written in output buffers
iio: buffer: make sure O_NONBLOCK is respected
iio: buffer: fix coding style warnings

 drivers/iio/industrialio-buffer.c | 119 +++++++++++++++---------------
 1 file changed, 61 insertions(+), 58 deletions(-)
Signature · 1 line
2.39.2