From owner-freebsd-scsi@freebsd.org Fri Jul 22 20:20:01 2016 Return-Path: Delivered-To: freebsd-scsi@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 16BEBBA2D31 for ; Fri, 22 Jul 2016 20:20:01 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id ED02413A2 for ; Fri, 22 Jul 2016 20:20:00 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mailman.ysv.freebsd.org (Postfix) id E85ECBA2D30; Fri, 22 Jul 2016 20:20:00 +0000 (UTC) Delivered-To: scsi@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E599ABA2D2F for ; Fri, 22 Jul 2016 20:20:00 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-io0-x22c.google.com (mail-io0-x22c.google.com [IPv6:2607:f8b0:4001:c06::22c]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 7EDF313A1 for ; Fri, 22 Jul 2016 20:20:00 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-io0-x22c.google.com with SMTP id b62so114824133iod.3 for ; Fri, 22 Jul 2016 13:20:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:sender:from:date:message-id:subject:to; bh=/4tsXOPtNL9Bfp7XANJQA7ZHF4SDYpIXPuslDxRlw5M=; b=Ylh2ALw3SfZP8aU+ULxw1gz/itaIj0sO9moFcXzenAr2MdFLeJznjgEGznaCrORfHj j7QVK9vxtHt8AGD1sVfDkjGyfQvNH25CPjmftXrN9qV4oHB125NnCcl4CRlQKT90hqo/ xKm51vbdTJ3qVaqYOKmeAwj/yar6Z6NZ8+BqaA+dqaqzDvXF5OGTf9iEpGXJ8+2wzYxr ZpuSvIGT3bT52Bfo7JgcvZMhFkvjxu7S8im3pHBOSQPXr01wSEFobs5fXIyPXEC1Kd6S nFJ1tPOvM9udmn+pcyObrhrt6J6b5rsFjuPad8l0X0Ab9AH3E8HVzcjkM3Y52XtHBU0Q uFkA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:from:date:message-id:subject :to; bh=/4tsXOPtNL9Bfp7XANJQA7ZHF4SDYpIXPuslDxRlw5M=; b=I7PfvvwRKf2Dl9Kwx83vAfxbPNyk04pXKLPLWRLSghdVmydum/G/6Egu+m9jIFYUyG IKSBlXL+9oy6Ev6MIyqoqDJozVEudjaA4gMNQg/IeSh6mdp/81MFB2A05I2gsY+yxh6f kMe3Ltu205eXtMFwttWzZix10gnRDM1lYJyphvFobkN6epVZpl0FMRldC9IpySJW/Dhb EspnjPSNslU88Lpq3VvNRs2drugq6NM5gsOZsmqJ1oY1/7YsO3dsciX2ZDB8sCpEMVOP 8OEa+CWmPUjWurRU9+fvsZmka84HvrblQ1jKC+5NETisKzi7bM7hDL3OU9PkazXV5YWE z7vA== X-Gm-Message-State: AEkoouttAo/Q+DBsGNshoRg1bgMlwvKOFld93Me5wnY0QRDVWoAu5XK+H4Yopn6uI+v36tvlBroW82ZC82fMAg== X-Received: by 10.107.133.93 with SMTP id h90mr6822792iod.16.1469218798503; Fri, 22 Jul 2016 13:19:58 -0700 (PDT) MIME-Version: 1.0 Sender: wlosh@bsdimp.com Received: by 10.79.137.131 with HTTP; Fri, 22 Jul 2016 13:19:58 -0700 (PDT) X-Originating-IP: [50.253.99.174] From: Warner Losh Date: Fri, 22 Jul 2016 14:19:58 -0600 X-Google-Sender-Auth: MPSbNB53O2-wakbg6HAjD8ETEM0 Message-ID: Subject: Working towards a goal... To: scsi@freebsd.org Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Jul 2016 20:20:01 -0000 So, I'm working towards a goal of having the routines that live in sys/cam/*.c never ever reference scsi, ata or nvme (or sdio or ...). there's way too many places where you have to add code when you add a transport and as evidenced by my recent (a) mismerged from the netflix tree and (b) the subsequent subtle breakage when I did, I think this needs to change. Before I go too nuts down this path, I thought I'd poll here for sentiment. Here's a review that starts to implement things by turning the XPORTs into a linker set. https://reviews.freebsd.org/D7289 Warner