]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: call device handler for failed TUR command
authorChristoph Hellwig <hch@infradead.org>
Thu, 6 Nov 2014 21:11:22 +0000 (15:11 -0600)
committerChristoph Hellwig <hch@lst.de>
Mon, 10 Nov 2014 14:23:19 +0000 (15:23 +0100)
commitb0c0008148dfc6b2349bc3ce14cda9784002edee
tree70ff4f072465a6d8ed71a42a92b593fe4defaeb9
parenta3cd82b59946dc89a775d401dcc5cf7dc4ef95b2
scsi: call device handler for failed TUR command

Multipath devices using the TUR path checker need to see the sense
code for a failed TUR command in their device handler.  Since commit
1a789310f54502fde057a133ab5b61cce6 we always return success for mid
layer issued TUR commands before calling the device handler, which
stopped the TUR path checker from working.

Move the call to the device handler check sense method before the early
return for TUR commands to give the device handler a chance to intercept
them.

Signed-off-by: Christoph Hellwig <hch@infradead.org>
Tested-by: Wen Xiong <wenxiong@linux.vnet.ibm.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
drivers/scsi/scsi_error.c