aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390/cio/qdio_main.c
diff options
context:
space:
mode:
authorJan Glauber <jang@linux.vnet.ibm.com>2011-01-05 06:47:50 -0500
committerMartin Schwidefsky <sky@mschwide.boeblingen.de.ibm.com>2011-01-05 06:47:28 -0500
commit3d6c76ff32bb9b2ebf6e859855d315eb42e3df50 (patch)
tree3a69d4f3023e75fee0bc55ba38ca7a54a8e4760c /drivers/s390/cio/qdio_main.c
parent4f325184f2d4c1f2258873b2a333005dc4dfcbc0 (diff)
[S390] qdio: outbound tasklet scan threshold
Introduce a scan treshold for the qdio outbound queues. By setting the threshold the driver can tell qdio after how much used SBALs qdio should schedule the outbound tasklet that scans the queue for finished SBALs. The threshold is specific by the drivers because a Hipersockets device is much faster in utilizing outbound buffers than a ZFCP or OSA device. The default values after how many used SBALs the tasklet should run are: OSA: > 31 SBALs Hipersockets: > 7 SBALs zfcp: > 55 SBALs Signed-off-by: Jan Glauber <jang@linux.vnet.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'drivers/s390/cio/qdio_main.c')
-rw-r--r--drivers/s390/cio/qdio_main.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/s390/cio/qdio_main.c b/drivers/s390/cio/qdio_main.c
index 6621de94f3ad..4c0109900c74 100644
--- a/drivers/s390/cio/qdio_main.c
+++ b/drivers/s390/cio/qdio_main.c
@@ -1492,7 +1492,13 @@ static int handle_outbound(struct qdio_q *q, unsigned int callflags,
1492 qperf_inc(q, fast_requeue); 1492 qperf_inc(q, fast_requeue);
1493 1493
1494out: 1494out:
1495 tasklet_schedule(&q->tasklet); 1495 /* in case of SIGA errors we must process the error immediately */
1496 if (used >= q->u.out.scan_threshold || rc)
1497 tasklet_schedule(&q->tasklet);
1498 else
1499 /* free the SBALs in case of no further traffic */
1500 if (!timer_pending(&q->u.out.timer))
1501 mod_timer(&q->u.out.timer, jiffies + HZ);
1496 return rc; 1502 return rc;
1497} 1503}
1498 1504