Re: [PATCH v2 scsi] Short the path length of scsi_cmd_to_driver()

2012-10-02 Thread Martin K. Petersen
> "Li" == Li Zhong writes: Li> As suggested by James: this patch tries to short the path length of Li> scsi_cmd_to_driver(). As only REQ_TYPE_BLOCK_PC commands can be Li> submitted without a driver, so we could avoid the related NULL Li> checking, as long as we make sure we don't use it for

Re: [PATCH v2 scsi] Short the path length of scsi_cmd_to_driver()

2012-10-02 Thread Martin K. Petersen
Li == Li Zhong zh...@linux.vnet.ibm.com writes: Li As suggested by James: this patch tries to short the path length of Li scsi_cmd_to_driver(). As only REQ_TYPE_BLOCK_PC commands can be Li submitted without a driver, so we could avoid the related NULL Li checking, as long as we make sure we

[PATCH v2 scsi] Short the path length of scsi_cmd_to_driver()

2012-09-28 Thread Li Zhong
As suggested by James: this patch tries to short the path length of scsi_cmd_to_driver(). As only REQ_TYPE_BLOCK_PC commands can be submitted without a driver, so we could avoid the related NULL checking, as long as we make sure we don't use it for REQ_TYPE_BLOCK_PC type commands. Plus, this fixes

[PATCH v2 scsi] Short the path length of scsi_cmd_to_driver()

2012-09-28 Thread Li Zhong
As suggested by James: this patch tries to short the path length of scsi_cmd_to_driver(). As only REQ_TYPE_BLOCK_PC commands can be submitted without a driver, so we could avoid the related NULL checking, as long as we make sure we don't use it for REQ_TYPE_BLOCK_PC type commands. Plus, this fixes