From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Hellwig Subject: Re: [PATCH] scsi_dh: only attach to SCSI devices Date: Thu, 16 Feb 2017 15:32:13 +0100 Message-ID: <20170216143212.GA32058@lst.de> References: <1487230394-84552-1-git-send-email-hare@suse.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from verein.lst.de ([213.95.11.211]:35779 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932067AbdBPOcP (ORCPT ); Thu, 16 Feb 2017 09:32:15 -0500 Content-Disposition: inline In-Reply-To: <1487230394-84552-1-git-send-email-hare@suse.de> Sender: linux-scsi-owner@vger.kernel.org List-Id: linux-scsi@vger.kernel.org To: Hannes Reinecke Cc: "Martin K. Petersen" , Christoph Hellwig , Keith Busch , linux-scsi@vger.kernel.org, Bart van Assche , Hannes Reinecke On Thu, Feb 16, 2017 at 08:33:14AM +0100, Hannes Reinecke wrote: > Any device might be setting a queuedata structure, so we need to > check if the queuedata really belongs to a SCSI device before > proceeding. Can you add a comment next to the scsi_is_sdev_device call explaining it? The thing is a bit of a hack, but probably the best we can do for now.