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

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

 



>>>>> "Li" == Li Zhong <zhong@xxxxxxxxxxxxxxxxxx> 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
Li> REQ_TYPE_BLOCK_PC type commands. Plus, this fixes a bug where you
Li> get different behaviors from REQ_TYPE_BLOCK_PC commands when a
Li> driver is and isn't attached.

Acked-by: Martin K. Petersen <martin.petersen@xxxxxxxxxx>

-- 
Martin K. Petersen	Oracle Linux Engineering
--
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