Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2718060pxk; Mon, 14 Sep 2020 23:42:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwbGgGCNpkLRefX72EqF1mZcF2WN4gdpTvItI8nYIZ750Tx+qH7+GUK4vqKmHg1gnPJ7DQC X-Received: by 2002:a05:6402:228c:: with SMTP id cw12mr21570781edb.174.1600152162760; Mon, 14 Sep 2020 23:42:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600152162; cv=none; d=google.com; s=arc-20160816; b=o6faIiZqe/4vBx77M801OkM3dxpk+RMkUO4XGZbNqqEREbN9p1kpKKuNkiZVf4StK2 l+SC8hbuRGUK4RwTcfk0441JF6hKuT9G2hVbBueNByZX1yVY2CPrYt3CUfLFoW3KmnWx L4End+y/zgSYDHrmxJHgVXcduAnxqJwxgzXaVIam75WGJ6uBWJ416yLApZ/c58s0AWZy oAHQpEWE68ohQsO+vcDqaeQ/3YtJXppLqRSeSu6OZYD/wBu7WdooZr76ZGfIMNwaIF4p 4RqVUtU6tJ7XDxOQ+lbvTUt4vuw6kJWpMcuSZfwryC8wKB3kNA0tP+a/S5/o14AqZPlt hV8g== 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=Hy8THZreyTSIgn9S/3yDDAD4nHbWyVnd9aNgZFJh4mQ=; b=GLga+stkxhLRi9JykF32izi4lR3OVTGCLnQ5MtrVjbxrDjhrpEpJhr2hauiV9mayoU U5x0DjLKt1eJ56GMhQ6XZyfeRxu7IDFmEk3MK6JceQsqi4d04tJNHzh9DW9vbBvZT355 T7ucUL+FchNuuj8lnF5ey7WdwiYZPG/WdxwpjZfns6l1AX5ri1sh2nV9J5RUQY2Daivw KunSmKoIiELmS+++VU6fdW/7IVQnTwfLmGcJ8KB/Jq41rE07JwRTWg/Uyo+HID66/UmO oN0brAwZmL+6q+A64ws8z52Q4F5ZkvqtvdL3I1Tpa75iM4EDLvlnKhrnsFrW9GAzuIBr YpjQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e9si8636039ejt.529.2020.09.14.23.42.20; Mon, 14 Sep 2020 23:42:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726073AbgIOGjb (ORCPT + 99 others); Tue, 15 Sep 2020 02:39:31 -0400 Received: from verein.lst.de ([213.95.11.211]:46615 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726033AbgIOGj1 (ORCPT ); Tue, 15 Sep 2020 02:39:27 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id A44226736F; Tue, 15 Sep 2020 08:39:23 +0200 (CEST) Date: Tue, 15 Sep 2020 08:39:23 +0200 From: Christoph Hellwig To: Harald Freudenberger Cc: Christoph Hellwig , linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org, hca@linux.ibm.com, gor@linux.ibm.com, borntraeger@de.ibm.com Subject: Re: [PATCH] s390/zcrypt: remove set_fs() invocation in zcrypt device driver Message-ID: <20200915063923.GA19468@lst.de> References: <20200910102838.28887-1-freude@linux.ibm.com> <20200911062134.GB21597@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 14, 2020 at 09:36:07AM +0200, Harald Freudenberger wrote: > Christoph, maybe you have a greater idea on how to solve this. So don't hesitate and tell me. > Otherwise how to we provide this fix then ? My recommendation would be to go the 'usual' way: > Commit this s390 internal and then let this go out with the next kernel merge window when > next time Linus is pulling patches from the s390 subsystem for the 5.10 kernel development cycle. What I did for the networking code is to add a new structure that contains a union of the kernel and userspace pointer and a flag for which one to use. That is pretty much the same as what you did, just a little more structured and type safe. The other alternative would be to use the iov_iter infrastructure, but that has some overhead.