Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1244927
| From | Hartley Sweeten <HartleyS@visionengravers.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | RE: [PATCH 00/10] staging: comedi: some comedi_read() changes |
| Date | 2015-10-12 19:10 +0200 |
| Message-ID | <qiOLL-5l6-13@gated-at.bofh.it> (permalink) |
| References | <qiO94-4kn-11@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Monday, October 12, 2015 9:21 AM, Ian Abbott wrote: > Tidy up the "read" file operation handler, `comedi_read()` a bit and > improve the error handling and the "end-of-file" handling. > > There are some other changes I want to make, such as switching to the > newer wait API (prepare_to_wait()/finish_wait()) and preventing several > tasks trying to read or write the same subdevice at the same time (but > without using the COMEDI device's main mutex as it is too coarse). > Those changes can wait until after I've cleaned up and improved the > "write" file operation handler a bit. > > 01) staging: comedi: remain busy until read end-of-file > 02) staging: comedi: don't consider "unmunged" data when becoming > non-busy > 03) staging: comedi: do extra checks for becoming non-busy for "read" > 04) staging: comedi: make some variables unsigned in comedi_read() > 05) staging: comedi: avoid bad truncation of a size_t in comedi_read() > 06) staging: comedi: allow buffer wraparound in comedi_read() > 07) staging: comedi: remove superfluous retval = 0 in comedi_read() > 08) staging: comedi: return error on "read" if no command set up > 09) staging: comedi: simplify returned errors for comedi_read() > 10) staging: comedi: check for more errors for zero-length read > > drivers/staging/comedi/comedi_fops.c | 68 +++++++++++++++++------------------- > 1 file changed, 32 insertions(+), 36 deletions(-) Thanks! Reviewed-by: H Hartley Sweeten <hsweeten@visionengravers.com> -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH 00/10] staging: comedi: some comedi_read() changes Ian Abbott <abbotti@mev.co.uk> - 2015-10-12 18:30 +0200 [PATCH 01/10] staging: comedi: remain busy until read end-of-file Ian Abbott <abbotti@mev.co.uk> - 2015-10-12 18:30 +0200 [PATCH 07/10] staging: comedi: remove superfluous retval = 0 in comedi_read() Ian Abbott <abbotti@mev.co.uk> - 2015-10-12 18:30 +0200 [PATCH 02/10] staging: comedi: don't consider "unmunged" data when becoming non-busy Ian Abbott <abbotti@mev.co.uk> - 2015-10-12 18:30 +0200 [PATCH 04/10] staging: comedi: make some variables unsigned in comedi_read() Ian Abbott <abbotti@mev.co.uk> - 2015-10-12 18:30 +0200 [PATCH 03/10] staging: comedi: do extra checks for becoming non-busy for "read" Ian Abbott <abbotti@mev.co.uk> - 2015-10-12 18:30 +0200 RE: [PATCH 00/10] staging: comedi: some comedi_read() changes Hartley Sweeten <HartleyS@visionengravers.com> - 2015-10-12 19:10 +0200
csiph-web