Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755221AbbHNMxf (ORCPT ); Fri, 14 Aug 2015 08:53:35 -0400 Received: from mx2.suse.de ([195.135.220.15]:51832 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754040AbbHNMxe (ORCPT ); Fri, 14 Aug 2015 08:53:34 -0400 Message-ID: <55CDE4CA.6060703@suse.de> Date: Fri, 14 Aug 2015 14:53:30 +0200 From: Hannes Reinecke User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: James Smart , Johannes Thumshirn , "James E.J. Bottomley" CC: linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] scsi: Export SCSI Inquiry data to sysfs References: <1439466608-31577-1-git-send-email-jthumshirn@suse.de> <55CD8B64.1080400@suse.de> <55CDDEBB.1040402@avagotech.com> In-Reply-To: <55CDDEBB.1040402@avagotech.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1492 Lines: 41 On 08/14/2015 02:27 PM, James Smart wrote: > On 8/14/2015 2:32 AM, Hannes Reinecke wrote: >> On 08/13/2015 01:50 PM, Johannes Thumshirn wrote: >>> Export the RAW SCSI Inquiry to sysfs as binfile. This way the >>> data can be used by userlang without the need to have and ioctl or use the >>> sg_inq tool. >>> >> userland! >> > > Just be careful. There are conditions where this could be stale > data.... LUN reconfig on an array that hasn't been rescanned by > the mid layer yet is such a case. > > Any reason you didn't have the sysfs call initiate a lun scan or > send an inquiry so it's always valid data ? > Currently the SCSI stack doesn't do LUN rescanning; the only way to recover from stale data is to remove the device and initiate a host rescan. That's why we have tools like rescan-scsi-bus.sh etc. We're working on moving the SCSI stack to do a LUN rescanning, but that's still future stuff. So this patch just displays the status quo, without any added functionality. Cheers, Hannes -- Dr. Hannes Reinecke zSeries & Storage hare@suse.de +49 911 74053 688 SUSE LINUX GmbH, Maxfeldstr. 5, 90409 N?rnberg GF: F. Imend?rffer, J. Smithard, J. Guild, D. Upmanyu, G. Norton HRB 21284 (AG N?rnberg) -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/