[SCSI] qla2xxx: Ensure there's enough request-queue space for passthru IOCBs.
The driver should ensure there's a sufficient number of IOCBs to satisfy the number of scatter-gather entries specified in the command. Add a 'count' to the control structure, srb_ctx, to use in qla2x00_alloc_iocbs(). Signed-off-by: Andrew Vasquez <andrew.vasquez@qlogic.com> Signed-off-by: Chad Dupuis <chad.dupuis@qlogic.com> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
This commit is contained in:
committed by
James Bottomley
parent
a00f6296aa
commit
5780790ee6
@@ -271,6 +271,7 @@ struct srb_iocb {
|
||||
struct srb_ctx {
|
||||
uint16_t type;
|
||||
char *name;
|
||||
int iocbs;
|
||||
union {
|
||||
struct srb_iocb *iocb_cmd;
|
||||
struct fc_bsg_job *bsg_job;
|
||||
|
||||
Reference in New Issue
Block a user