aboutsummaryrefslogtreecommitdiff
path: root/include/scsi/libfc.h
diff options
context:
space:
mode:
authorPaul Fertser <fercerpav@gmail.com>2009-07-28 00:58:48 +0400
committerPaul Fertser <fercerpav@gmail.com>2009-08-02 11:27:19 +0400
commit1f0f8418cdbacc41ddf3adcce0b8552f075b26d7 (patch)
tree15f193713da6f8b7d88e9d35dbd5f8e15badc627 /include/scsi/libfc.h
parent21658522b00d047212d7a78cb749648ff3bfeb04 (diff)
pcf50633: revise locking for ADC
Current implementation is prone to races, this patch attempts to remove all but one (in pcf50633_adc_sync_read). The idea is that we need to guard the queue access only on inserting and removing items. If we insert and there're no more items in the queue it means that the last irq already happened and we need to trigger ADC manually. If not, then the next conversion will be triggered by the irq handler upon completion of the previous. Signed-off-by: Paul Fertser <fercerpav@gmail.com>
Diffstat (limited to 'include/scsi/libfc.h')
0 files changed, 0 insertions, 0 deletions