RE: [PATCH 00/37] staging: comedi: some comedi core reorganization

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thursday, April 04, 2013 6:59 AM, Ian Abbott wrote:
> This series of patches reorganizes the comedi core module somewhat.  My
> main aim was originally to implement proper reference counting for
> comedi devices and get rid of various race conditions related to removal
> of devices.  I haven't got that far yet due to time constraints but I
> have got as far as simplifying the data structures used by the core,
> eliminating the `struct comedi_file_info` type, which seems like a
> natural break point.  I plan to come back to the reference counting
> stuff later, but have real (payed) work to do in the meantime and I
> don't want my existing patches to go stale.  (Besides, this series of
> patches is starting to get a bit long already!)

Looks good.

Nice job getting rid of the struct comedi_file_info.

Dan Carpenter's suggestion of a WARN_ON in PATCH 1 is probably a
good idea.

A comment about the reference counts issue might be a good idea
so it isn't forgotten.

Question. Are all the BUG_ON checks of the minor actually needed?
comedi_alloc_subdevice() and comedi_alloc_subdevice_minor() both
validate the minor before setting s->minor. The BUG_ON checks in
comedi_free_subdevice_minor() should never happen and the others
shouldn't be possible either.

Other than that...

Reviewed-by: H Hartley Sweeten <hsweeten@xxxxxxxxxxxxxxxxxxx>

_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/devel




[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux