lkml.org 
[lkml]   [2012]   [Oct]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH v2 scsi] Short the path length of scsi_cmd_to_driver()
From
Date
>>>>> "Li" == Li Zhong <zhong@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 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@oracle.com>

--
Martin K. Petersen Oracle Linux Engineering


\
 
 \ /
  Last update: 2012-10-03 01:01    [W:0.067 / U:0.784 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site