From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796097491; b=yhCw9oL1UOx6g1Nzwlkr3puaicYN0pdHAgLNY6+4pADWQLsWecGWF5IO1X3gKZfp42ri 8qsHmQ+Y6+gNyp0yESNv33uXZDxm3KUtJrILw8kSp8RyRlQRRFN/OC5DmGuesyGSnCYpL t65beyzjPh/LLvoAHinoFucjM90BrnnU7qaWM0WID1wrjIeaS4hMWRhL3pvE0ZOFFcF0O oUj5k1zpqvqdZHMfkCb4oBjVbZV+00mXnUcllXZf7isW5esF+0VlpYpgNJamwEJo/o4pk lsb/pA8fseOngFW5RkqWmI6Ep9SrH2tk7VsSWkjkZ68m8oLafJd50sjf2/pkjnpzw9Q== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796097491; h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=yUcitaCdBMUKlI8V0pU4tNhF7cjH0q6ArdrHeHHqZCA=; b=agA74DHntE8o04rIQqDCTJFKRgglhjFNmjRJHsoQrOd0L+xVz24rMlHT+vtUXAuwdBgT OenlA7UHnEzUsgL4REIoQ9uewgsYpjyTzdeIiI28/5Ykdg9745q4c1dSef8WRhwFSJqJO QTrCD3iinMhlo5qXhSxiWgV4HUK5gb8iq+VcHtL7Y2v6G7dmMnHCX7PqSh02wAAiezlTR w2Grq5I5ypWCBH+9TKPGO6NtCX6M4vOAhs7R97PLP+EHkrPdWAFLYnVKukViBfmNtoa9J T/8MJLMLfiHlfV8UK4suvQ891gndN813Pa5hkkZVug9zFVWToj+oKPfOb4P5zgLBcXQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=EMYDZ1AR; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A28A3606A33B for ; Tue, 1 Dec 2026 03:58:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=EMYDZ1AR Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3B2911F000C1; Tue, 1 Dec 2026 03:58:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796097491; bh=yUcitaCdBMUKlI8V0pU4tNhF7cjH0q6ArdrHeHHqZCA=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=EMYDZ1ARBZsxyQd2wLBQMWuiIRmQU30gBLoF63TAcq1RT4ICIp2eCvmcmVSecbHrE oPgV6hn4xxDqpFhP+OZ+kEfhc05WCUd2rilsbQr4+0NhM87Z8B+f7bln/nb0mmOSJj EQfstGRuWh2z0mEAh18t4u+VzUABTgxa5Md4yma6S+w/P2QuVxpybajNyV/RkTEAMq +pxODH4UpLIpVPirwxOiqQPz57I7nnZRpTTRsOjzoVOkOqkGuEhvDy+DqiIkIFjqWc siEqxhv+Aw4jNm0QRlmaidyCH1RhGuy/XysCGcG/7Hya2aVe2OATvUg0+Ho+FTClbA Q+EPxq7x+bLkQ== Date: Mon, 30 Nov 2026 19:58:09 -0800 From: Eric Biggers To: Fengnan Chang Cc: Jens Axboe , linux-block@vger.kernel.org Subject: Re: [PATCH] blk-crypto: clear REQ_POLLED on software-encrypted write bios Message-ID: <20261201035809.GA7060@sol> References: <20261201033650.193709-1-changfengnan@bytedance.com> X-Mailing-List: linux-block@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20261201033650.193709-1-changfengnan@bytedance.com> On Tue, Dec 01, 2026 at 03:36:50AM +0000, Fengnan Chang wrote: > blk-crypto-fallback encrypts a write into new bios and completes the > source bio from their endio callback. The submitter only polls the > source bio, which is never queued to hardware and never gets a cookie. > If the encrypted bios inherit REQ_POLLED and land on a poll queue, > nothing polls them, and the write stalls until the request times out. > > Let the encrypted bios use interrupt completion. Reads are not > affected: the source bio itself is submitted and decrypted after it > completes. > > Reproduced with io_uring IOPOLL O_DIRECT writes to an fscrypt-encrypted > ext4 file (mounted with -o inlinecrypt) on a null_blk device with poll > queues: every write failed with -ETIMEDOUT after the request timeout. > With this change the writes complete and read back correctly. > > Signed-off-by: Fengnan Chang Looks correct, but it needs Fixes and Cc stable. I think the following: Fixes: 3e08773c3841 ("block: switch polling to be bio based") Cc: stable@vger.kernel.org - Eric