commit | e9dc8334d765f7910114921c63a0324272f1f636 | [log] [tgz] |
---|---|---|
author | Hannes Reinecke <hare@suse.de> | Fri Feb 17 09:02:45 2017 +0100 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Sun Mar 12 06:41:45 2017 +0100 |
tree | e31c39b4e85db8bf02a79019d78a1ba9f0a497e2 | |
parent | 73f5176ecac265b03dcd8ef0aaed6950e5ecb828 [diff] |
scsi: use 'scsi_device_from_queue()' for scsi_dh commit 857de6e00778738dc3d61f75acbac35bdc48e533 upstream. The device handler needs to check if a given queue belongs to a scsi device; only then does it make sense to attach a device handler. [mkp: dropped flags] Signed-off-by: Hannes Reinecke <hare@suse.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>