Re: [PATCH v1.3 4/18] arcmsr: limit max. number of SCSI command request

2014-08-07 Thread Tomas Henzl
On 08/04/2014 06:00 AM, Ching Huang wrote: > On Fri, 2014-08-01 at 05:35 -0700, Christoph Hellwig wrote: >>> @@ -2220,8 +2220,7 @@ static int arcmsr_queue_command_lck(stru >>> arcmsr_handle_virtual_command(acb, cmd); >>> return 0; >>> } >>> - if (atomic_read(&acb->ccbo

Re: [PATCH v1.3 4/18] arcmsr: limit max. number of SCSI command request

2014-08-03 Thread Ching Huang
On Fri, 2014-08-01 at 05:35 -0700, Christoph Hellwig wrote: > > @@ -2220,8 +2220,7 @@ static int arcmsr_queue_command_lck(stru > > arcmsr_handle_virtual_command(acb, cmd); > > return 0; > > } > > - if (atomic_read(&acb->ccboutstandingcount) >= > > - A

Re: [PATCH v1.3 4/18] arcmsr: limit max. number of SCSI command request

2014-08-01 Thread Christoph Hellwig
> @@ -2220,8 +2220,7 @@ static int arcmsr_queue_command_lck(stru > arcmsr_handle_virtual_command(acb, cmd); > return 0; > } > - if (atomic_read(&acb->ccboutstandingcount) >= > - ARCMSR_MAX_OUTSTANDING_CMD) > + if (atomic_read(&acb->ccbou

[PATCH v1.3 4/18] arcmsr: limit max. number of SCSI command request

2014-08-01 Thread Ching Huang
This patch limits the max. number of SCSI command request to avoid command overflow. Signed-off-by: Ching --- diff -uprN a/drivers/scsi/arcmsr/arcmsr.h b/drivers/scsi/arcmsr/arcmsr.h --- a/drivers/scsi/arcmsr/arcmsr.h 2014-05-06 15:24:06.0 +0800 +++ b/drivers/scsi/arcmsr/arcmsr.h