Received: by 2002:a05:7412:8521:b0:e2:908c:2ebd with SMTP id t33csp1305971rdf; Sat, 4 Nov 2023 15:11:35 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH0RjcfUtB5d3dtK2g7MGLKuv1Xgez9VMg3OPptAXWLHn0ejR7HW400SfYHj++LPfr1Rswe X-Received: by 2002:a05:6a20:7da5:b0:181:3649:2a31 with SMTP id v37-20020a056a207da500b0018136492a31mr14238766pzj.33.1699135894776; Sat, 04 Nov 2023 15:11:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1699135894; cv=none; d=google.com; s=arc-20160816; b=FHmfDSDkRR5TORZmXyecSYavqPKRWZxNDWvn77DxHQxLo7Quqmaba6wiO1PZafycH+ NNTPTw/CzGfdu20DgwXg/EL1jBLrYXqo/esceR+8Aukpr6nMiaMnabCjXGFwBEH2RlIJ tMMleURdv7lncP80Cf4eZHboR7QMJzKO8ClW0QRTeMBvf42IqUtN2g+z4oGp7W5UA4vy LzpOloolKPxoKuROFi37EKlLOSYEJXIksK8mOsS94MMQztymwgKUSciKoJgv/A+hU7r2 htzCmQItcHhCXxyONkHdQB/6X8pRJnUciVOMgaof4cTbyKVv0os+sM1GnnuYIjOfbyyi OvAQ== 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 23.128.96.33 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 lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id x25-20020aa793b9000000b0068a3cb58334si4243179pff.320.2023.11.04.15.11.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 04 Nov 2023 15:11:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; 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 23.128.96.33 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 863F180564DC; Sat, 4 Nov 2023 15:11:32 -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 S229783AbjKDWL3 (ORCPT + 99 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 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: 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:32 -0700 (PDT) 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); } -- 2.39.2