diff options
author | Matthew Wilcox <matthew@wil.cx> | 2006-03-28 11:03:44 -0500 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.il.steeleye.com> | 2006-04-13 11:13:24 -0400 |
commit | 3bea15a76eecc03729bf74d6ab2a1f849c08423e (patch) | |
tree | 674e96482b034ed57222878816f87c63cc5d800f /drivers/scsi/sym53c8xx_2/sym_glue.c | |
parent | 76789f01768bb4cef706f4c9e7e2f3f4eb8c1431 (diff) |
[SCSI] Disable sym2 driver queueing
Undef SYM_OPT_HANDLE_DEVICE_QUEUEING.
Call sym_put_start_queue instead of sym_start_next_ccbs.
Turn asserts into checks that we can send the command to the adapter,
and return busy from queuecommand if we can't.
Signed-off-by: Matthew Wilcox <matthew@wil.cx>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi/sym53c8xx_2/sym_glue.c')
-rw-r--r-- | drivers/scsi/sym53c8xx_2/sym_glue.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/drivers/scsi/sym53c8xx_2/sym_glue.c b/drivers/scsi/sym53c8xx_2/sym_glue.c index 052ce11806ad..a27dd66b6613 100644 --- a/drivers/scsi/sym53c8xx_2/sym_glue.c +++ b/drivers/scsi/sym53c8xx_2/sym_glue.c | |||
@@ -475,8 +475,6 @@ static inline int sym_setup_cdb(struct sym_hcb *np, struct scsi_cmnd *cmd, struc | |||
475 | */ | 475 | */ |
476 | int sym_setup_data_and_start(struct sym_hcb *np, struct scsi_cmnd *cmd, struct sym_ccb *cp) | 476 | int sym_setup_data_and_start(struct sym_hcb *np, struct scsi_cmnd *cmd, struct sym_ccb *cp) |
477 | { | 477 | { |
478 | struct sym_tcb *tp = &np->target[cp->target]; | ||
479 | struct sym_lcb *lp = sym_lp(tp, cp->lun); | ||
480 | u32 lastp, goalp; | 478 | u32 lastp, goalp; |
481 | int dir; | 479 | int dir; |
482 | 480 | ||
@@ -557,7 +555,7 @@ int sym_setup_data_and_start(struct sym_hcb *np, struct scsi_cmnd *cmd, struct s | |||
557 | /* | 555 | /* |
558 | * activate this job. | 556 | * activate this job. |
559 | */ | 557 | */ |
560 | sym_start_next_ccbs(np, lp, 2); | 558 | sym_put_start_queue(np, cp); |
561 | return 0; | 559 | return 0; |
562 | 560 | ||
563 | out_abort: | 561 | out_abort: |
@@ -871,15 +869,12 @@ static void sym_tune_dev_queuing(struct sym_tcb *tp, int lun, u_short reqtags) | |||
871 | if (reqtags > lp->s.scdev_depth) | 869 | if (reqtags > lp->s.scdev_depth) |
872 | reqtags = lp->s.scdev_depth; | 870 | reqtags = lp->s.scdev_depth; |
873 | 871 | ||
874 | lp->started_limit = reqtags ? reqtags : 2; | ||
875 | lp->started_max = 1; | ||
876 | lp->s.reqtags = reqtags; | 872 | lp->s.reqtags = reqtags; |
877 | 873 | ||
878 | if (reqtags != oldtags) { | 874 | if (reqtags != oldtags) { |
879 | dev_info(&tp->starget->dev, | 875 | dev_info(&tp->starget->dev, |
880 | "tagged command queuing %s, command queue depth %d.\n", | 876 | "tagged command queuing %s, command queue depth %d.\n", |
881 | lp->s.reqtags ? "enabled" : "disabled", | 877 | lp->s.reqtags ? "enabled" : "disabled", reqtags); |
882 | lp->started_limit); | ||
883 | } | 878 | } |
884 | } | 879 | } |
885 | 880 | ||