Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp1628961iog; Tue, 14 Jun 2022 09:43:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy55xl3z9qFcY4mz+goRmY8MX5NTgUlOCudC3trtHpBIKilfsMYV+enCmAv4A4j5SDd/rTe X-Received: by 2002:a17:907:3d8a:b0:710:c2e8:79f2 with SMTP id he10-20020a1709073d8a00b00710c2e879f2mr4984129ejc.577.1655225023377; Tue, 14 Jun 2022 09:43:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655225023; cv=none; d=google.com; s=arc-20160816; b=fC7rMAM0WETPwEEu708M1XiXDbtbDD7iKhkJc1UH9GWIXVrIHZnlHYs2M1rgTndE2n QlYIXp9XIJVdw6U7Jo436IuR9PaQg/5qgFxK+Wcml4awIE1Pu+Md9rDlam4E35CAsbmn PAT2bXuTgm+jfCCprv5eA2dJTlIKwusInkSJGVrm5nBfuF+Rgc3vX3qXvwjGLJ8vf6Hg Ezl4jQ3re+s8vRQ6QETE0LMmPoC6xjURJV/V59CQvlxsFJeHQNY9FM2iEQETT5Oul+vR z/Rct/lctdl+qPtqZYq/6pp6+FaaY/Yad+lHnWcyGeaTslMVbkRJ9ISz/7zkSZ7uV1D7 8KOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=M/kEUFAftetAf2N7yHDHF4JNTzfknxIkkNoqCJfpWV0=; b=XQoO9HCEZrUngTRa7bK+EqvQF/WcIkwSLp9rlI4tRHe4IPskAcjktR0YN7ABZnJYFy 7Vn16Lf22IH9C+JNMU1BBFqKv+dxZZXO2vmP2bgsjYuWgp+jlML46rk2WF5cpkikzS+V uSrs/Q0RI03L2OPAK/5gyRieTe4Iukc70gkqtcfZ9dJV3gIJWeOF8412dMD5td0IkzHW 45p3W5lNi3EMfSqzDFlOKnetNuUJRfyOUxO4Q/5edYLpRZvRoVyOxetpihnaDQhIbKuW lm8c6vjkCb4rBcD0Pq3cBLIFQZNaSNfqKfgVZV/DhyPWTRNPfXn9Ih8+ET51b7S/ORQh wu0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=bQFtbs9Y; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bm25-20020a0564020b1900b0042fb3bafedfsi11240890edb.348.2022.06.14.09.43.18; Tue, 14 Jun 2022 09:43:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=bQFtbs9Y; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344307AbiFNQd7 (ORCPT + 99 others); Tue, 14 Jun 2022 12:33:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50610 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239599AbiFNQd6 (ORCPT ); Tue, 14 Jun 2022 12:33:58 -0400 Received: from mail-yw1-x1134.google.com (mail-yw1-x1134.google.com [IPv6:2607:f8b0:4864:20::1134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8088D27CD3 for ; Tue, 14 Jun 2022 09:33:57 -0700 (PDT) Received: by mail-yw1-x1134.google.com with SMTP id 00721157ae682-30ec2aa3b6cso35210397b3.11 for ; Tue, 14 Jun 2022 09:33:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=M/kEUFAftetAf2N7yHDHF4JNTzfknxIkkNoqCJfpWV0=; b=bQFtbs9YcHpIat+VNMaXN8GfVHbAWCDLkV7fg62QD0yIWV+0uP3jDb6bxCYuRrqEKT khJU61Bk1hb9Uq80iBtZyGFkblrK2wmswiU0/MbDSWcgffqTKuIHptrGMxqOTMIqbcC5 sHDPSHsiLF/+5qg30zLjsDKcgknLfGgW1u29wprNjV5IKExT0DSPvuMIv9W8cvVBEDsm 5HJuDD1ugXa43hE611TnQppED/4xi7YH9Yfla859aTKuPPndKZGqDFWWurUyMgqK4jRr xL31Z0Afw/Y6Rb16m9Il0Mtp3STHc2r+MPEzB3OgRTSAFGzSzZ3IIs/HR0OlrSmV8qTK UyLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=M/kEUFAftetAf2N7yHDHF4JNTzfknxIkkNoqCJfpWV0=; b=T8mUwYP6NstXsW7hiFPbX2hPrJTdcydDU1+kyxa79qPP6NvqzXf++RPJclTiqavBRb RdSxBq5hYoheDf4YMvVBTyeZQO1EFQURHX2fAIK5rlSMgE44MRUVJOOHmn3rhBy80Y6W eXAB2a+Uu1Eljh9hn8yuPW+OeH192iuUlViTQWwa5fC4MJ0WGXc5/eHxtHVuuImC8on4 Ga10vT4D9H9Z6L9BbP0I432D6jeSwMDwY47gVttVh8oyMdKqWdovjWcpW3EUPL/TMxox uEf3zv29VO5IdxL3tqb70NTWFaf7CKFZxw8g47ISB1TcGoJ6zHOI7Lo/sOhFmNJBsTqJ zZJQ== X-Gm-Message-State: AJIora/1lFcwXuIucoOR0hkDRzV7Phme6hF34DDjQJleKAUfS9d+t4AY TMuJjDGPa1G/chNdSEHmiTadCna7L4rQv1hJybfON40CPnx3TQ== X-Received: by 2002:a81:78d:0:b0:2e5:d440:d921 with SMTP id 135-20020a81078d000000b002e5d440d921mr6236243ywh.251.1655224436611; Tue, 14 Jun 2022 09:33:56 -0700 (PDT) MIME-Version: 1.0 References: <20220613155612.402297-1-daeho43@gmail.com> In-Reply-To: From: Daeho Jeong Date: Tue, 14 Jun 2022 09:33:45 -0700 Message-ID: Subject: Re: [PATCH] f2fs: handle decompress only post processing in softirq To: Eric Biggers Cc: linux-kernel@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net, kernel-team@android.com, Daeho Jeong , Nathan Huckleberry Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > One question: is this (the bio endio callback) actually guaranteed to be > executed from a softirq? If you look at dm-crypt's support for workqueue-less > decryption, for example, it explicitly checks 'in_hardirq() || irqs_disabled()' > and schedules a tasklet if either of those is the case. > > - Eric Oh, you're right. Even though it's safe to defer all the release process as a work in end_io function, it's better to check the condition and process the release process right away if possible. Thanks,