lkml.org 
[lkml]   [2014]   [Oct]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 1/6] scsi_dh: get module reference outside of device handler
On Mon, Oct 20, 2014 at 08:01:20AM +0200, Hannes Reinecke wrote:
> Is it guaranteed that you cannot call ->attach() for devices which
> already have a device_handler attached?
> You've skipped the case
>
> scsi_dh != sdev->scsi_dh_data->scsi_dh

No. Just instead of an if / else it's an if with an early return in the
new code.



\
 
 \ /
  Last update: 2014-10-20 09:21    [W:0.179 / U:0.180 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site