Message ID | 20231104221117.2584708-1-mjguzik@gmail.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> 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 <rfc822;lhua1029@gmail.com> + 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 <rfc822;linux-kernel@vger.kernel.org>); 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 <mjguzik@gmail.com> To: brauner@kernel.org Cc: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, Mateusz Guzik <mjguzik@gmail.com> 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 Content-Transfer-Encoding: 8bit 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: <linux-kernel.vger.kernel.org> 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 |
Series |
vfs: remove a redundant might_sleep in wait_on_inode
|
|
Commit Message
Mateusz Guzik
Nov. 4, 2023, 10:11 p.m. UTC
wait_on_bit already does it.
Signed-off-by: Mateusz Guzik <mjguzik@gmail.com>
---
include/linux/writeback.h | 1 -
1 file changed, 1 deletion(-)
Comments
On Sat, 04 Nov 2023 23:11:17 +0100, Mateusz Guzik wrote: > wait_on_bit already does it. > > Applied to the vfs.misc branch of the vfs/vfs.git tree. Patches in the vfs.misc branch should appear in linux-next soon. Please report any outstanding bugs that were missed during review in a new review to the original patch series allowing us to drop it. It's encouraged to provide Acked-bys and Reviewed-bys even though the patch has now been applied. If possible patch trailers will be updated. Note that commit hashes shown below are subject to change due to rebase, trailer updates or similar. If in doubt, please check the listed branch. tree: https://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs.git branch: vfs.misc [1/1] vfs: remove a redundant might_sleep in wait_on_inode https://git.kernel.org/vfs/vfs/c/357196038a51
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); }