Message ID | 20221029160441.15310-1-sensor1010@163.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp1420159wru; Sat, 29 Oct 2022 09:31:16 -0700 (PDT) X-Google-Smtp-Source: AMsMyM47ycaHWQkPquWd/Pm1+toCp0pz6Y+1MOiHdO4eXPP4lwle17dwbjvxPgTjHZS5XJPXb2xs X-Received: by 2002:a17:907:7f02:b0:73d:dffa:57b3 with SMTP id qf2-20020a1709077f0200b0073ddffa57b3mr4666594ejc.19.1667061076565; Sat, 29 Oct 2022 09:31:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667061076; cv=none; d=google.com; s=arc-20160816; b=opCqsUC77Wa6KC6KJ7fSKNcRVumubGwwL/hL1d7DOJoU0MtQ4F/Dk7NvnTV9oLl3bq t1l6aIf5wbSY/WnNHuWQIduiBva33PNpPR61bcV/A+t9sKzYL51ZDXo40dolFe/Mm5A+ DhA09LZRWgtyKp5V/hW3Y31uKoHnnyHGGC0+0vvZDwl3FtML8PxuMdNQ0FlbcxPjJnNA tV1gmxmt5QqahFSkRVwqTB3s23tMEixTV5cUGC3r4y5uo4onTpMO3hRmjbNk1HpwIJcu T+r2Qd6YeygWqVd0jHJgFtUbd/UTRjfLZVaHXR8eqtgiR+Ghl5AT1S4stj26byLPiuAs ZMqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from :dkim-signature; bh=0B1FVaVV5evkwbVPgn9oHtnGGpcrFJzZgKclD7ch7cM=; b=rVS7MeALeiTnSlOiw1d3RZ+VSWo6fvSiZBrFfr2PgO0Y7ABc0noMKKuupJ0JChrwSS TiehPNWLeFbL/mAhetiPngk7IfpVzrXqmWM6EkG4gVNIuGZBEM0sLy82zkfI7MZlijdR YfmrOaiAW2Ed7AXXDz3C7IrW11EunAXD5RxDFyK/GmWY92daLIncJ/K9NqDoPtWNFFsv hcqBzvjD917xdqYZ+Rnkxn2tIbtVN+J8jEValgMmxWF5oOmGMXoLZm1aCrRANbE2Po30 6Xc+z80x8jUwN+yOT9F74YOiDH/1Ona6QXfZZLlyHmww85Wzp19w5hsgN6cRs/1o5y4s DCkg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@163.com header.s=s110527 header.b="at/uIxwM"; 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=NONE dis=NONE) header.from=163.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id my15-20020a1709065a4f00b00782ff2649a7si1628008ejc.346.2022.10.29.09.30.52; Sat, 29 Oct 2022 09:31:16 -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=@163.com header.s=s110527 header.b="at/uIxwM"; 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=NONE dis=NONE) header.from=163.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229761AbiJ2QFZ (ORCPT <rfc822;pusanteemu@gmail.com> + 99 others); Sat, 29 Oct 2022 12:05:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56412 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229726AbiJ2QFT (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sat, 29 Oct 2022 12:05:19 -0400 Received: from mail-m971.mail.163.com (mail-m971.mail.163.com [123.126.97.1]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id B9E0C2EF38 for <linux-kernel@vger.kernel.org>; Sat, 29 Oct 2022 09:05:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-Id; bh=0B1FVaVV5evkwbVPgn 9oHtnGGpcrFJzZgKclD7ch7cM=; b=at/uIxwMMvJmERcIQPH+8i0BGtOFHlbVBQ oA5JNeWERApikSAdA29Q2wAdDt4/vSjUhS54BJLcckq5VZ+I/dMxu4MrGD8bi72v KilErDXWyWpbFoZ9rARdKp5UwnscNfrhAlTyH7Z6du5r7Nj2Ut6CtT+C4llAQ4sW yDlWn7LfA= Received: from localhost.localdomain (unknown [153.37.166.1]) by smtp1 (Coremail) with SMTP id GdxpCgDn8IYbT11jsfL5oQ--.17034S4; Sun, 30 Oct 2022 00:05:06 +0800 (CST) From: lizhe <sensor1010@163.com> To: agk@redhat.com, snitzer@kernel.org, dm-devel@redhat.com Cc: linux-kernel@vger.kernel.org, lizhe <sensor1010@163.com> Subject: [PATCH v1] drivers/dm-crypt.c : remove redundant state settings after waking up Date: Sat, 29 Oct 2022 09:04:41 -0700 Message-Id: <20221029160441.15310-1-sensor1010@163.com> X-Mailer: git-send-email 2.17.1 X-CM-TRANSID: GdxpCgDn8IYbT11jsfL5oQ--.17034S4 X-Coremail-Antispam: 1Uf129KBjDUn29KB7ZKAUJUUUUU529EdanIXcx71UUUUU7v73 VFW2AGmfu7bjvjm3AaLaJ3UbIYCTnIWIevJa73UjIFyTuYvjTRQTmhUUUUU X-Originating-IP: [153.37.166.1] X-CM-SenderInfo: 5vhq20jurqiii6rwjhhfrp/xtbBdBKpq1gi4TLiagAAsF X-Spam-Status: No, score=-1.8 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 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1748040235472855355?= X-GMAIL-MSGID: =?utf-8?q?1748040235472855355?= |
Series |
[v1] drivers/dm-crypt.c : remove redundant state settings after waking up
|
|
Commit Message
Lizhe
Oct. 29, 2022, 4:04 p.m. UTC
The task status has been set to TASK_RUNNING in schedule(),
no need to set again here
Signed-off-by: lizhe <sensor1010@163.com>
---
drivers/md/dm-crypt.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/md/dm-crypt.c b/drivers/md/dm-crypt.c index 159c6806c19b..dd82e5aad729 100644 --- a/drivers/md/dm-crypt.c +++ b/drivers/md/dm-crypt.c @@ -1913,7 +1913,6 @@ static int dmcrypt_write(void *data) schedule(); - set_current_state(TASK_RUNNING); spin_lock_irq(&cc->write_thread_lock); goto continue_locked;