Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp980387imm; Fri, 5 Oct 2018 15:36:09 -0700 (PDT) X-Google-Smtp-Source: ACcGV61flujIbctRbnP3Yn+4P+Qn/VUG9vjIadrCXWreyJaCVot9CnMhgceASAgd480Ep5AnXNMA X-Received: by 2002:aa7:8598:: with SMTP id w24-v6mr14195834pfn.77.1538778969933; Fri, 05 Oct 2018 15:36:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538778969; cv=none; d=google.com; s=arc-20160816; b=jTI0AqwpMbYIx+Q2UYEs+3oICe0AA174N23QNJwaaGhlMt17Gz9IKZpujEg9qWjiXX Rp+B75+eCVW106oh9rXhPXre/ZbFbiGN5VUqLDKk2sozE+hHHEJ0rAG4fxyOHk2pr5mH dkbWdiVqDis/3ZNLd98QOBAFCJ65Z/cbnNv7APUNSOLFCyn1ZW7PI+gvRlYwV2DFP9PI 0LUAs5h9pnrZTqUuR0er9UzpMEmQo/gD3wlOAuyIjiTssEyZULh4rOKXbp7+dPt3hZtV YEhR/ijFYKSDXxzw9WwSfn0odO9NZAZQWPNLyMM6D7fpZpdBEeegUGvwowCGehi3q6CN 5Z7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=JqSpAI5xuDAC4lLDA3IS4Ugm/WuhhKFD4Ny4l9KNoTA=; b=lRfntkIWgxo+3C9tlozd8xR36yGH/NXKPvGzo0bRg3LfKxqxoFx2UTdNNA4g5MN43G LROg0QeEFUHUIuoAf/IjecC/Mqy0PRca4pVhHSxve9a9UR50oBAG8uEs/KTptLJXzgf0 zIFSbEG5dyqTz/MQbVWgpKNK8pj/iAqfV3CpPLpy/cG5j8IF5vLscUv8FWSO+3GBrnDY WDp3e5qWAtS7ZAdhnWCM4MjxhsNnTcaxqQT2FRU0DRipvWk/XYrfaeP9ItUT5mh+6GaD Ps8zeR1ddcgOYxnnxn/GAFzbw7sWJFgL6WZZPIBrl1iwti4d5gmHdZiUbxuH8JczhF4N HKEg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a3-v6si6743846pgq.49.2018.10.05.15.35.54; Fri, 05 Oct 2018 15:36:09 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729114AbeJFFg2 (ORCPT + 99 others); Sat, 6 Oct 2018 01:36:28 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:50776 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726399AbeJFFg2 (ORCPT ); Sat, 6 Oct 2018 01:36:28 -0400 Received: from localhost (unknown [104.153.224.168]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id EF28F1356; Fri, 5 Oct 2018 22:35:38 +0000 (UTC) Date: Fri, 5 Oct 2018 15:35:26 -0700 From: Greg KH To: Dror Levin Cc: torvalds@linux-foundation.org, Richard Weinberger , linux-kernel@vger.kernel.org, linux-block@vger.kernel.org, linux-scsi@vger.kernel.org, hch@infradead.org, axboe@kernel.dk Subject: Re: Recent removal of bsg read/write support Message-ID: <20181005223526.GF13613@kroah.com> References: 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 Thu, Oct 04, 2018 at 09:58:37AM +0300, Dror Levin wrote: > CC'ing Greg. > > On Mon, Sep 3, 2018 at 11:34 AM Dror Levin wrote: > > > > On Sun, Sep 2, 2018 at 8:55 PM Linus Torvalds > > wrote: > > > > > > On Sun, Sep 2, 2018 at 4:44 AM Richard Weinberger > > > wrote: > > > > > > > > CC'ing relevant people. Otherwise your mail might get lost. > > > > > > Indeed. > > > > Sorry for that. > > > > > > On Sun, Sep 2, 2018 at 1:37 PM Dror Levin wrote: > > > > > > > > > > We have an internal tool that uses the bsg read/write interface to > > > > > issue SCSI commands as part of a test suite for a storage device. > > > > > > > > > > After recently reading on LWN that this interface is to be removed we > > > > > tried porting our code to use sg instead. However, that raises new > > > > > issues - mainly getting ENOMEM over iSCSI for unknown reasons. > > > > > > Is there any chance that you can make more data available? > > > > Sure, I can try. > > > > We use writev() to send up to SG_MAX_QUEUE tasks at a time. Occasionally not > > all tasks are written at which point we wait for tasks to return before > > sending more, but then writev() fails with ENOMEM and we see this in the syslog: > > > > Sep 1 20:58:14 gdc-qa-io-017 kernel: sd 441:0:0:5: [sg73] > > sg_common_write: start_req err=-12 > > > > Failing tasks are reads of 128KiB. > > > > > I'd rather fix the sg interface (which while also broken garbage, we > > > can't get rid of) than re-surrect the bsg interface. > > Discussion seems to have died down but release of 4.19 is drawing near. > > Is there still any chance removal of bsg can be reconsidered? Maybe > postponed to the > next version to allow more time to adjust? > > I'm especially concerned about the possibility of this being > backported to stable kernels > which might leave us very little time to fix our code. What is being backported to what stable kernels and why? Is there sg patches? totally confused, greg k-h