]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
scsi: scsi_dh_alua: Ensure that alua_activate() calls the completion function
authorBart Van Assche <bart.vanassche@sandisk.com>
Sat, 18 Mar 2017 00:02:02 +0000 (17:02 -0700)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 21 Apr 2017 08:11:24 +0000 (10:11 +0200)
commita378be6d349ed6a98dc72ab2da20c7382d4a3eff
tree5e43da04819a93f39cb85cbe3a9eb6836a73d53f
parent2a6bfc780daae3828816868f0d2568261bd297d3
scsi: scsi_dh_alua: Ensure that alua_activate() calls the completion function

BugLink: http://bugs.launchpad.net/bugs/1681875
commit 7cb689fe42927281b8d98606ae5450173fcc66a9 upstream.

Callers of scsi_dh_activate(), e.g. dm-mpath, assume that this function
either returns an error code or calls the completion function. Make
alua_activate() call the completion function even if scsi_device_get()
fails.

Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
Cc: Hannes Reinecke <hare@suse.de>
Cc: Tang Junhui <tang.junhui@zte.com.cn>
Reviewed-by: Hannes Reinecke <hare@suse.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/device_handler/scsi_dh_alua.c