From: Christoph Hellwig Date: Mon, 2 Feb 2015 13:01:25 +0000 (+0100) Subject: sd: don't grab a device references from driver methods X-Git-Tag: omap-for-v4.1/fixes-rc1~120^2~101 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3d9a1f530e508ff6fc9ab8220016b02f1bce255b;p=pandora-kernel.git sd: don't grab a device references from driver methods The device model already takes care of races between ->remove and ->shutdown vs its other methods, and we now take care about locking them out for ->rescan as well. This is a partial revert of commit 39b7f1 ("[SCSI] sd: Fix refcounting"). Signed-off-by: Christoph Hellwig Reviewed-by: Hannes Reinecke Signed-off-by: James Bottomley --- Reading git-diff-tree failed