Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261947AbTIUJXu (ORCPT ); Sun, 21 Sep 2003 05:23:50 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262339AbTIUJXu (ORCPT ); Sun, 21 Sep 2003 05:23:50 -0400 Received: from ns.virtualhost.dk ([195.184.98.160]:20370 "EHLO virtualhost.dk") by vger.kernel.org with ESMTP id S261947AbTIUJXt (ORCPT ); Sun, 21 Sep 2003 05:23:49 -0400 Date: Fri, 1 Jan 1904 00:08:57 +0100 From: Jens Axboe To: Jeff Garzik Cc: Linux Kernel Mailing List , torvalds@osdl.org, Alan Cox Subject: Re: 2.7 block ramblings (was Re: DMA for ide-scsi?) Message-ID: <19031231230857.GA1050@suse.de> References: <200309131101.h8DB1WNd021570@harpo.it.uu.se> <1063476275.8702.35.camel@dhcp23.swansea.linux.org.uk> <20030913184934.GB10047@gtf.org> <20030913190131.GD10047@gtf.org> <20030915073445.GC27105@suse.de> <20030916194955.GC5987@gtf.org> <20030916195515.GC906@suse.de> <3F6C9C55.6050608@pobox.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3F6C9C55.6050608@pobox.com> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1285 Lines: 30 On Sat, Sep 20 2003, Jeff Garzik wrote: > Jens Axboe wrote: > >On Tue, Sep 16 2003, Jeff Garzik wrote: > > >>And we should deprecate them with a solution that aligns what with Linus > >>described in Dec 2001 on lkml: a chrdev where userland write(2)s cdbs > >>and taskfiles, and read(2)s the results. This is where my thinking > >>picked up: if we are creating a chrdev to send "packets" and receive > >>responses to those packets............ > > > > > >== bsg, block sg. Did you read what I wrote? :). I started implementing > >this and have something that barely works. You just bind a block device > >to a /dev/sg* char device and use read/write on that. Aka sg. > > sg needs some modifications -- for example it errors out instead of > sleeps on queue full -- but sounds good to me. Definitely. bsg will be a new implementation from scratch, also dumping a lot of really (imo) useless "features" that clutter up the code. And yes, of course it should honor the typical write(2) model :) -- Jens Axboe - 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/