From: Christoph Hellwig Date: Sun, 14 Sep 2014 02:41:16 +0000 (-0700) Subject: scsi_dh: get module reference outside of device handler X-Git-Tag: omap-for-v3.19/fixes-for-merge-window~21^2~1^2~23 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=27c888f0bb889693c6a3b6d39eba3265c16c072f;p=pandora-kernel.git scsi_dh: get module reference outside of device handler We need to grab a reference to the module before calling the attach routines to avoid a small race vs module removal. It also cleans up the code significantly as a side effect. Signed-off-by: Christoph Hellwig Reviewed-by: Mike Christie Reviewed-by: Hannes Reinecke --- Reading git-diff-tree failed