Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3784735imu; Mon, 28 Jan 2019 10:44:07 -0800 (PST) X-Google-Smtp-Source: ALg8bN6jRSfIvplopvo/mMk40srJT6zTOpDYGhQE5GswCc2rZVR0HBYtyH1aEdC4GJsZWVZprRt1 X-Received: by 2002:a63:e655:: with SMTP id p21mr20607921pgj.70.1548701047778; Mon, 28 Jan 2019 10:44:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548701047; cv=none; d=google.com; s=arc-20160816; b=JKHy7igsUvQC/rRPazZTeIgb5/wklnQ4EDli635m53b0AV5Rw0qiM+bcPmWnARJE3Q 9lWbD9RNfdr8U4QzJqq98sQsU0fRsB7yARBOPFhNYsh/j2BxXAJEq/iZCtk+liI3ZSXG cgWRiXgb+ph4u2mHXkDs0Qildc61fIJ5oPEAMoidtkNx9atm4pDeCUkBK0Z8KIiElDAu Vvwg1VMllZDSAm6j84d1/0v/lMUrKsmqPB4jrj3RAmUwM5r7a64L6UPltlMeSGBqlxw1 NxTSQkyTsnFZTOeLQLCySQORdGBdlgrHhq/rsadh2QsGeRF7jYQcIq9+NYh6p4uZjS5d 2ZKg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=aBn18MogPQugOMESahPc03MNSoYd3OBnYM/KuVvsEuA=; b=UQOOFAksc6NqawYtTUVkivjaFwbx68ACMtz0oCTmBA9r4ISjikhtRfi+9VfYrk/1z3 caHdzxd4UhXIJ9yw9bJlw3b/he7D/Zy6+han1EMn5bp5VjCyJ6nGyyKXwOMBdtGEMbV3 bGIFZ95pd3RV5hsiFNjcuBSZFyIT8BaN683DKXIVcnO8qjzoONeD4Wk24L5DMeZCnv0x VDD8t3qG43NZkJDsr0ZlHSSaii3eJmwXru43YoMMNBJD94JcGdAZ5FQy5MIVJrfl6HzZ KmL4jgdJOXJKt+iyJYpfQTbNR4oqTaTHLfIbIMPgk9QHYPSYX5u9i8+QlbUsLBWvnHoF aTGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=XF77MV1q; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i5si4698488pfo.189.2019.01.28.10.43.52; Mon, 28 Jan 2019 10:44:07 -0800 (PST) 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; dkim=pass header.i=@chromium.org header.s=google header.b=XF77MV1q; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727837AbfA1SnG (ORCPT + 99 others); Mon, 28 Jan 2019 13:43:06 -0500 Received: from mail-lf1-f67.google.com ([209.85.167.67]:38968 "EHLO mail-lf1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726667AbfA1SnG (ORCPT ); Mon, 28 Jan 2019 13:43:06 -0500 Received: by mail-lf1-f67.google.com with SMTP id n18so12645311lfh.6 for ; Mon, 28 Jan 2019 10:43:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=aBn18MogPQugOMESahPc03MNSoYd3OBnYM/KuVvsEuA=; b=XF77MV1qcxMFv4YSzyvS4nHQLV1tqLKIOuPHne0F/qZVN/eKyw8C7/1SIlJAkOeSkm B2hFhBYD7rAoWwLhflfirZOtXIBtrh+5FcF/cNCgQiRxq+IqjlgLR4pAYldlDhYsrKIL O2KHJw224sTWaaixrGo8NC2iELGcJF3AIrtO0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=aBn18MogPQugOMESahPc03MNSoYd3OBnYM/KuVvsEuA=; b=FfF0JptnDeicLUP3gnlH/FKJ5ay3QEtcbEgqNyalTJpGh8JITmS1+GeEQQOGZUFYhP QZlG4WZK1q8wxuax5l6X2YVbtz8JgOvesH7yyXP4WidBl2wL0GEQuIY3kMnIA4UpkpuK cJ4lWmGKBu8MSeY/fo8fgdHbDSSzOj0G/Up3oNmY19Mlr1PSHIEeTQO/EmCk7eGx+aEC U1RaCRfPCeLbEAoTVgOlbD+YEq839cIMbGam7b9txVVRzLirZOrRoTFLDFXW9ANlLZYu b+HayLu4Pv5234QuahSNubyqAzaHsg4OGjbzTEMlqzHB2aS+JGzfG7egMi4bmMkLfEB3 54qA== X-Gm-Message-State: AJcUukeBNVX2VGXyKmU26LV0+ya8kinwXCpqCV+IlqBZEQem5/nAfD0l W/AqQxGpzDvZWixmT7sEHubJoiFKSs4= X-Received: by 2002:a19:c995:: with SMTP id z143mr17053471lff.79.1548700984206; Mon, 28 Jan 2019 10:43:04 -0800 (PST) Received: from mail-lf1-f44.google.com (mail-lf1-f44.google.com. [209.85.167.44]) by smtp.gmail.com with ESMTPSA id u65sm3214606lff.54.2019.01.28.10.43.03 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 28 Jan 2019 10:43:03 -0800 (PST) Received: by mail-lf1-f44.google.com with SMTP id i26so12697919lfc.0 for ; Mon, 28 Jan 2019 10:43:03 -0800 (PST) X-Received: by 2002:a19:d381:: with SMTP id k123mr17226328lfg.101.1548700983150; Mon, 28 Jan 2019 10:43:03 -0800 (PST) MIME-Version: 1.0 References: <1548572868-12589-1-git-send-email-avri.altman@wdc.com> <1548572868-12589-4-git-send-email-avri.altman@wdc.com> In-Reply-To: <1548572868-12589-4-git-send-email-avri.altman@wdc.com> From: Evan Green Date: Mon, 28 Jan 2019 10:42:26 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v4 3/3] scsi: ufs-bsg: Allow reading descriptors To: Avri Altman Cc: "James E.J. Bottomley" , "Martin K. Petersen" , SCSI , LKML , Avi Shchislowski , Alex Lemberg Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Jan 26, 2019 at 11:08 PM Avri Altman wrote: > > Add this functionality, placing the descriptor being read in the actual > data buffer in the bio. > > That is, for both read and write descriptors query upiu, we are using > the job's request_payload. This in turn, is mapped back in user land to > the applicable sg_io_v4 xferp: dout_xferp for write descriptor, > and din_xferp for read descriptor. > > Signed-off-by: Avri Altman Reviewed-by: Evan Green