From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2C9C9C43603 for ; Thu, 19 Dec 2019 14:34:27 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 08E1824672 for ; Thu, 19 Dec 2019 14:34:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726890AbfLSOe0 (ORCPT ); Thu, 19 Dec 2019 09:34:26 -0500 Received: from mx2.suse.de ([195.135.220.15]:43806 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726701AbfLSOeZ (ORCPT ); Thu, 19 Dec 2019 09:34:25 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 35E88AD3B; Thu, 19 Dec 2019 14:34:24 +0000 (UTC) Date: Thu, 19 Dec 2019 15:34:22 +0100 From: Michal =?iso-8859-1?Q?Such=E1nek?= To: "Martin K. Petersen" Cc: linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, "James E.J. Bottomley" , Jens Axboe Subject: Re: [PATCH] scsi: blacklist: add VMware ESXi cdrom - broken tray emulation Message-ID: <20191219143422.GJ4113@kitsune.suse.cz> References: <20191217180840.9414-1-msuchanek@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Dec 17, 2019 at 05:28:28PM -0500, Martin K. Petersen wrote: > > Michal, > > > + {"VMware", "VMware", NULL, BLIST_NO_MATCH_VENDOR | BLIST_NO_TRAY}, > > Please don't introduce a blist flag to work around deficiencies in the > matching interface. I suggest you tweak the matching functions so they > handle a NULL vendor string correctly. I don't think that will work with the interface for dynamically adding entries through sysfs. Thanks Michal