From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Ewan D. Milne" Subject: [PATCH v3 1/6] [SCSI] Add a kernel config option for enhanced Unit Attention support Date: Wed, 19 Jun 2013 13:42:36 -0400 Message-ID: <1371663761-22481-2-git-send-email-emilne@redhat.com> References: <1371663761-22481-1-git-send-email-emilne@redhat.com> Return-path: Received: from mx1.redhat.com ([209.132.183.28]:1975 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756805Ab3FSRmo (ORCPT ); Wed, 19 Jun 2013 13:42:44 -0400 In-Reply-To: <1371663761-22481-1-git-send-email-emilne@redhat.com> Sender: linux-scsi-owner@vger.kernel.org List-Id: linux-scsi@vger.kernel.org To: linux-scsi@vger.kernel.org Cc: jbottomley@parallels.com, rwheeler@redhat.com From: "Ewan D. Milne" Added CONFIG_SCSI_ENHANCED_UA kernel config option to enable changes in the SCSI mid-layer which detect and report certain Unit Attention conditions reported by devices. These changes are primarily useful when storage arrays that can be reconfigured are being used, so the config option would normally not be used unless it was needed. Signed-off-by: Ewan D. Milne --- drivers/scsi/Kconfig | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/drivers/scsi/Kconfig b/drivers/scsi/Kconfig index e955978..5d1e614 100644 --- a/drivers/scsi/Kconfig +++ b/drivers/scsi/Kconfig @@ -280,6 +280,18 @@ config SCSI_WAIT_SCAN # disabling it, whereas people who accidentally switch it off may wonder why # their mkinitrd gets into trouble. +config SCSI_ENHANCED_UA + bool "Enhanced SCSI Unit Attention handling" + depends on SCSI + help + Certain SCSI devices report changes via a UNIT ATTENTION code. + (For example, the addition or removal of LUNs from a target, or + changing the number of logical blocks on a LUN.) This option + enables reporting of these changes via udev events, so that the + device can be rescanned to find out what has changed. This is + primarily useful when storage arrays that can be reconfigured + are attached to the system, otherwise you can say N here. + menu "SCSI Transports" depends on SCSI -- 1.7.11.7