]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
scsi: use 'scsi_device_from_queue()' for scsi_dh
authorHannes Reinecke <hare@suse.de>
Fri, 17 Feb 2017 08:02:45 +0000 (09:02 +0100)
committerTim Gardner <tim.gardner@canonical.com>
Mon, 13 Mar 2017 21:20:54 +0000 (15:20 -0600)
commitc6f916eae2b471784b0d3564d925907af89f7a27
treecf160b8917bcdc1e1e09862b11bef4a645e7c158
parent1b8a2f7567c5af945d5abc05a7007e327578375d
scsi: use 'scsi_device_from_queue()' for scsi_dh

BugLink: http://bugs.launchpad.net/bugs/1672544
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>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
drivers/scsi/scsi_dh.c
drivers/scsi/scsi_lib.c
include/scsi/scsi_device.h