Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp460485ybg; Wed, 3 Jun 2020 05:26:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx4EDAMd/V2djQh2uSf5y++DDIlE/Gp9DXBvBIccQ6cCk/sT2sZJF2V/xqzVD16CR8vRHGX X-Received: by 2002:a50:ab16:: with SMTP id s22mr5513742edc.345.1591187201630; Wed, 03 Jun 2020 05:26:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591187201; cv=none; d=google.com; s=arc-20160816; b=gFPTDzUAc/4BusFw+HPEjwmvLJvp+kB8YiHqvJZIbPDh6Wr6IEKqRANiwi1eVmFfhj iCEmU9xgbYbZvADyVeueisxuc/WerXalz7u4dSnaB/IPWYYNsN20MPFB9DgNq+895gc5 SCknzP74zNcQvrbOs98QrtIn6jcEk+0MgOinabiYxFIR6ssfT9ym9YF+uCfFqpXmEJRl h+Ls7pEqQ3NjV5qeS2I+qXryBZpdJRXflvnCGH+poTioYZM0AjFuNOI90geuvj+cL8uP nhQgrLblLyUJxBGVN8fLVc6YjoTI8X+I50Pa9oWP2aBg9GQU/asc98A+jsrREG616gYU CaMA== 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=kA6Pjn9CqiMvdDjmTFDgiS/6QgARD0otYDcngT5P7KE=; b=L4k2+/zdQuc/EDql1oWTRb3Stemp7Nm04DHi1umJbLvEnJ7y1U8ZSmi0Rhix/zw8g6 qlpWujmgeEPo1KFIroJxOUp4l+ly0xpiUI1l2LJF6GabjqSpgtrD9Dqcz7jsLUICvO7v 6aaoxFlYKlDgPBjV5pnyp6LOUIixD4JVzzytfeK+jsroAyBwb/la5QFuAQs8FI0gTWaS RHzhOA3vimll2AjU4NT1wRSG4FOM/Ys2NooKv5vbyATCBKpEnKvQFnCRNdNTrUZiFcmb y/F0jLGmqXjKD8sVNQ8ioqVKQrypdu25mtQJRKxY7Dkm3TwXx/DMo75oy6pfQRk4d/7Z RxnA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-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 f18si1049687ejf.617.2020.06.03.05.26.05; Wed, 03 Jun 2020 05:26:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-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-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725937AbgFCM0B (ORCPT + 99 others); Wed, 3 Jun 2020 08:26:01 -0400 Received: from helcar.hmeau.com ([216.24.177.18]:60130 "EHLO fornost.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725833AbgFCM0A (ORCPT ); Wed, 3 Jun 2020 08:26:00 -0400 Received: from gwarestrin.arnor.me.apana.org.au ([192.168.0.7]) by fornost.hmeau.com with smtp (Exim 4.92 #5 (Debian)) id 1jgSSg-0004RW-1G; Wed, 03 Jun 2020 22:25:39 +1000 Received: by gwarestrin.arnor.me.apana.org.au (sSMTP sendmail emulation); Wed, 03 Jun 2020 22:25:38 +1000 Date: Wed, 3 Jun 2020 22:25:38 +1000 From: Herbert Xu To: Mikulas Patocka Cc: Giovanni Cabiddu , Mike Snitzer , "David S. Miller" , Milan Broz , djeffery@redhat.com, dm-devel@redhat.com, qat-linux@intel.com, linux-crypto@vger.kernel.org, guazhang@redhat.com, jpittman@redhat.com Subject: Re: [PATCH 1/4] qat: fix misunderstood -EBUSY return code Message-ID: <20200603122537.GA31719@gondor.apana.org.au> References: <20200601160418.171851200@debian-a64.vm> <20200602220516.GA20880@silpixa00400314> 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-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Wed, Jun 03, 2020 at 04:31:54AM -0400, Mikulas Patocka wrote: > > > Should we just retry a number of times and then fail? > > It's better to get stuck in an infinite loop than to cause random I/O > errors. The infinite loop requires reboot, but it doesn't damage data on > disks. > > The proper solution would be to add the request to a queue and process the > queue when some other request ended - but it would need substantial > rewrite of the driver. Do you want to rewrite it using a queue? > > > Or, should we just move to the crypto-engine? > > What do you mean by the crypto-engine? crypto-engine is the generic queueing mechanism that any crypto driver can use to implement the queueing. Thanks, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt