]> git.karo-electronics.de Git - linux-beck.git/commit
[SCSI] scsi_dh: add scsi_dh_attached_handler_name
authorMike Snitzer <snitzer@redhat.com>
Tue, 26 Jun 2012 18:32:03 +0000 (14:32 -0400)
committerJames Bottomley <JBottomley@Parallels.com>
Fri, 20 Jul 2012 07:58:42 +0000 (08:58 +0100)
commit7e8a74b177f17d100916b6ad415450f7c9508691
tree3a2ed38f030ef3e79d3c332c594dbad89d7642bf
parent6aca4112f67b67d0a2f60326a1331a4125564ca7
[SCSI] scsi_dh: add scsi_dh_attached_handler_name

Introduce scsi_dh_attached_handler_name() to retrieve the name of the
scsi_dh that is attached to the scsi_device associated with the provided
request queue.  Returns NULL if a scsi_dh is not attached.

Also, fix scsi_dh_{attach,detach} function header comments to document
@q rather than @sdev.

Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Tested-by: Babu Moger <babu.moger@netapp.com>
Reviewed-by: Chandra Seetharaman <sekharan@us.ibm.com>
Acked-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/device_handler/scsi_dh.c
include/scsi/scsi_dh.h