Re: [PATCHv4 09/12] mpt3sas: simplify task management functions

2017-03-13 Thread Hannes Reinecke
On 03/06/2017 06:16 AM, Sreekanth Reddy wrote: > I feel that using these flags are not working as expected. From the > driver's prospective it should return status of the TM based on > whether it has cleared reference of the timed out IO in the driver or > not (i.e. if it is successfully able to

Re: [PATCHv4 09/12] mpt3sas: simplify task management functions

2017-03-05 Thread Sreekanth Reddy
I feel that using these flags are not working as expected. From the driver's prospective it should return status of the TM based on whether it has cleared reference of the timed out IO in the driver or not (i.e. if it is successfully able to clear the reference (i.e. cleared from scsi lookup) of

[PATCHv4 09/12] mpt3sas: simplify task management functions

2017-02-22 Thread Hannes Reinecke
One can simply check 'target_busy' or 'device_busy' when figuring out if there are outstanding commands; no need to painstakingly counting them by hand. Suggested-by: Christoph Hellwig Signed-off-by: Hannes Reinecke --- drivers/scsi/mpt3sas/mpt3sas_scsih.c | 88