Re: [PATCH 3/3 version 4] scsi_lib: Collapse scsi_end_request into only user

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 01/05/2010 05:20 PM, Alan Stern wrote:
> On Tue, 5 Jan 2010, Boaz Harrosh wrote:
> 
>> Embedding scsi_end_request() into scsi_io_completion actually simplifies
>> the code and makes it clearer what's going on.
>>
>> There is absolutely no functional and/or side effects changes after this
>> patch.
> 
> Here are some suggestions for changes to the comments.  These are quite
> minor and you might not want to bother updating the patch yet again...
> 

Sure, NP. thanks for checking me out, coming from Hebrew I do need support
in these matters. Will update tomorrow.

Alan can I add your Review-by: this time around?

>> +	if (likely(0 == blk_end_request(req, error, good_bytes))) {
>> +		/* All is done and good move to next command */
> 
> 		/* The command completed successfully; move on to the next. */
> 
>> +		cmd->request = NULL;
>> +		action = ACTION_NEXT_CMND;
>> +	} else if (result == 0) {
>> +		/* Wrote some bytes but request was split */
> 
> 		/* The command was successful but not all the data was
> 		 * transferred; re-prep the command to handle the rest.
> 		 */
> 
>> +		action = ACTION_REPREP;
>> +	} else if (error && scsi_noretry_cmd(cmd)) {
>> +		/* kill remainder if no retries */
> 
> 		/* Error.  Kill the request since retries are disallowed. */
> 
>> +		blk_end_request_all(req, error);
>> +		cmd->request = NULL;
>> +		action = ACTION_NEXT_CMND;
>> +	} else if (host_byte(result) == DID_RESET) {
> 
> Alan Stern
> 

Thanks
Boaz
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux