[SCSI] fnic: Process all cq entries per ISR
authorAbhijeet Joglekar <abjoglek@cisco.com>
Wed, 21 Oct 2009 23:28:14 +0000 (16:28 -0700)
committerJames Bottomley <James.Bottomley@suse.de>
Fri, 4 Dec 2009 18:00:35 +0000 (12:00 -0600)
commitd5cf4b28e13989ace24cf26de1e1debec18e9685
treef1b5ad05036ef81a5ab1c16d25d6484dadb73d13
parent8f550f937e9fdafa5c37e348e214aecec851ef3f
[SCSI] fnic: Process all cq entries per ISR

Driver was processing a fixed max number of cq descriptors per ISR. For
instance, for the SCSI IO queue, number of IOs processed per ISR were 8.
If hardware writes 9 cq descriptors to the cq and generates an interrupt,
driver would process only 8 descriptors and decrement the outstanding
credit count by 8. Unless another interrupt event happens, the hw does
not generate any additional interrupt. This results in the cq descriptor
sitting in the queue without being procesed and can cause IO timeouts
and aborts.

Modify all ISR functions to process all queued cq descriptors in one shot.
Since bulk of ELS frame processing is done in thread context and bulk
of SCSI IO processing is done in soft ISR deferred context, the cycles
spent in the ISR per cq descriptor is small.

Signed-off-by: Herman Lee <hermlee@cisco.com>
Signed-off-by: Abhijeet Joglekar <abjoglek@cisco.com>
Signed-off-by: Robert Love <robert.w.love@intel.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/fnic/fnic_isr.c
This page took 0.026959 seconds and 5 git commands to generate.