]> git.karo-electronics.de Git - linux-beck.git/commit
libata-scsi: Generate sense code for disabled devices
authorHannes Reinecke <hare@suse.de>
Mon, 25 Apr 2016 10:45:50 +0000 (12:45 +0200)
committerTejun Heo <tj@kernel.org>
Mon, 9 May 2016 16:36:45 +0000 (12:36 -0400)
commit59f68474c2a1f5f0cedede60b60de97c603dc194
treebc3fdf2dc88364fbc22cc19ed5b1c5af03e4f8cd
parenta57038496422d7d21b7e41ed70d63bf0c6ff6068
libata-scsi: Generate sense code for disabled devices

If a device is disabled after error recovery it doesn't make
any sense to generate an ATA sense, but we should rather
return a generic sense code indicating the device is gone.

Signed-off-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
drivers/ata/libata-scsi.c