From patchwork Sat Nov 4 22:11:17 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mateusz Guzik X-Patchwork-Id: 161606 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:8f47:0:b0:403:3b70:6f57 with SMTP id j7csp1863503vqu; Sat, 4 Nov 2023 15:12:52 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGKZ/pL5rPhSOgqzSF6IKfzkWW5i1vuq2RfhR0OkVYtKq6YMhq9Me/CvugVhZuVZCQdO42x X-Received: by 2002:a05:6870:c14f:b0:1ef:bf3a:3bed with SMTP id g15-20020a056870c14f00b001efbf3a3bedmr23568613oad.46.1699135971919; Sat, 04 Nov 2023 15:12:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1699135971; cv=none; d=google.com; s=arc-20160816; b=zvjd+KuMcG2JZhDW2iy3zCsVIZ4uyzBL+BkERluHEaK/oMauJEDUC3pxXDJGDWOTmz 1zaYOjn/0bEqcbAYSNvJGcAm74OT3mBASFCuKDnQcWXeNkgcBO31EwRSZaoTta+Y2AYX pjKXLOH3ZIy+/jFb4IYEapsRTxL5Ro1JmkncAu3XTwhdmwCXXCfeEa2KyA9QJxhZSXuH lma9WYFXtqbwMpTbqoKPksBO/NcGU7eB/BI9BxWeS1rT3/+c0kB6v2TCGJTTL56JbJyq kDtzRI+w/rcl7QSuyxfdsEYP/9FugOx1BoEgGQIikDxlueU0qfFTgwsoP9EEnpCgKwgp 1E5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=YT/ZfnvFyYr1kv1f5K6t5f8NLfO8EWfoMm/vZrwqkMg=; fh=u0ivogzYbldFMm0SQ5Yx8JuIPu9MbRkx9T4GdN1pW8I=; b=BkY4Rqt0H1c1pcrPGj/SwNh4ZugS8lfAKyBSWBr1GgPfxRo910S7Ep/v/64i6QkAp2 HBJCsgh9ibCsrEDuQdNoWM9QIr8KP+WoASGEo2samezUBZXkkIRB8Mvm3BRhuBi1+7mN s26afke1ZU9GE39LiWW9CdTXUeaUqNxAgXQ97gtWzW0cIb5oYlFVlFXl4cmsFrZCNbPG I94iv5oFgPe3DEAvwrDwFh8tDPvp4voAtIY2Qfq/6ve6O3WzdJr80YNobLiziKFQONas nKqhUF4VTE34S8+79p7X/Lv+rfVljUwjg/58u+3t9aBFiumWUpjYUE4FDjSpOsZJi9T/ uHCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=DFqovksI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id w32-20020a634920000000b00578db6172fdsi4601090pga.325.2023.11.04.15.12.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 04 Nov 2023 15:12:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=DFqovksI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 31865807C868; Sat, 4 Nov 2023 15:11:55 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229788AbjKDWL3 (ORCPT + 35 others); Sat, 4 Nov 2023 18:11:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51018 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229488AbjKDWL2 (ORCPT ); Sat, 4 Nov 2023 18:11:28 -0400 Received: from mail-lf1-x12e.google.com (mail-lf1-x12e.google.com [IPv6:2a00:1450:4864:20::12e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 23E86D69; Sat, 4 Nov 2023 15:11:25 -0700 (PDT) Received: by mail-lf1-x12e.google.com with SMTP id 2adb3069b0e04-507962561adso4307839e87.0; Sat, 04 Nov 2023 15:11:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1699135883; x=1699740683; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=YT/ZfnvFyYr1kv1f5K6t5f8NLfO8EWfoMm/vZrwqkMg=; b=DFqovksIrLy68REtYwQW4lXZ5wQc6TZckMPnozkD8SUmBndAhCGFsk93rXIda26EVH z1sXXGO8VC91lfbJnzGBhS4Ixu3+stC7Rj3ato3/fBri6mImJ1ebcS3arJ3Hr4vM76sb S4gC03LF/1YSZGfMyyMLUE2A5vwK185IZ01SFF1cMs4gKNh7A17LpBYSgbPw4dXOHyE4 hzNISItPdWiCB4jN7eMHMomxfVPEknDg67lrBPmA8mWozqvE4klbI6Mefg145/gfuvdF K0OhUBKoWcSe7Cxd15xE8io8oLYxl+gTkNjT09TB1DfRWvRImAlg0zzztKLF0kwQzMRI o6cQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699135883; x=1699740683; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=YT/ZfnvFyYr1kv1f5K6t5f8NLfO8EWfoMm/vZrwqkMg=; b=lFHQNXhAFO9hAtJ418ehru0RbzEcW3usF5THikJjrDi3PPXf6trTgyRUXWPXjlMDnz w4v0uKsIWGLm/faprMADggNg0WKiU7KjKjVIA9ky6e0RdgER5ESryOVZRebkAHgpfnz4 t44aeTrmDE5cRSPDJTwI4g/HOAxG94HDPaccyNhhdfQk3tGTsBxjZCEA0dLtSWw8MWO+ GvUCzzMfClSRyQH08stcFss3nbRF0eRW2lsqa9R+jgCxS9zA7x17m8J6sre/Ea7aZUNi Wvet1T6w6HDdXJ3Bqgqd+kMXrM51MvQ2Dkb8M8Nax1HvgylVmAN1WxXKBsaOO7fhHtmH /srg== X-Gm-Message-State: AOJu0YzEXJzk+8/e8EfBtRpEoZEUFPktN+wXG4zSkeZTvlbVRNsquvTj BogP7dL+PXELzfcCx5qMN9wQjNZ2xBM= X-Received: by 2002:ac2:5626:0:b0:507:9ff6:75b6 with SMTP id b6-20020ac25626000000b005079ff675b6mr17381071lff.50.1699135883081; Sat, 04 Nov 2023 15:11:23 -0700 (PDT) Received: from f.. (cst-prg-81-17.cust.vodafone.cz. [46.135.81.17]) by smtp.gmail.com with ESMTPSA id r11-20020aa7d14b000000b00534e791296bsm2492487edo.37.2023.11.04.15.11.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 04 Nov 2023 15:11:22 -0700 (PDT) From: Mateusz Guzik To: brauner@kernel.org Cc: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, Mateusz Guzik Subject: [PATCH] vfs: remove a redundant might_sleep in wait_on_inode Date: Sat, 4 Nov 2023 23:11:17 +0100 Message-Id: <20231104221117.2584708-1-mjguzik@gmail.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Sat, 04 Nov 2023 15:11:55 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1781673201091082408 X-GMAIL-MSGID: 1781673201091082408 wait_on_bit already does it. Signed-off-by: Mateusz Guzik --- include/linux/writeback.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/linux/writeback.h b/include/linux/writeback.h index 083387c00f0c..6d0a14f7019d 100644 --- a/include/linux/writeback.h +++ b/include/linux/writeback.h @@ -193,7 +193,6 @@ void inode_io_list_del(struct inode *inode); /* writeback.h requires fs.h; it, too, is not included from here. */ static inline void wait_on_inode(struct inode *inode) { - might_sleep(); wait_on_bit(&inode->i_state, __I_NEW, TASK_UNINTERRUPTIBLE); }