Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1783459ybv; Sun, 23 Feb 2020 15:18:19 -0800 (PST) X-Google-Smtp-Source: APXvYqz30z4NTb3bh0cnKHfMA0QWNUaeuaMe4c98UBdoV2hsEjC6nbfa4+SRLHMPCnQ0KcD5QgMN X-Received: by 2002:a05:6830:1498:: with SMTP id s24mr40375970otq.79.1582499898925; Sun, 23 Feb 2020 15:18:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582499898; cv=none; d=google.com; s=arc-20160816; b=zNbZiL1KP8nbryiUMW8zFp47VfSkdro6s8QC9OaUcRU32s6wcgh6UgRl7xHZuCa2lU gwLECQDExMM8s2IC9fOihQ+1O3uin4h4X4SO7ao9bZ6ftGdXc0tUVcLT8YnFxVm0SqSa LlFnquFnWALey6jOxNJEOu6+2PO40ya+TeQqQwsWDKO6nvDb3zjttQPEgw6sQ/juqKGx VaelAHAG+sh9P0IRGfzDdIxeV5IwjTxPueQN0jPrIIzzu3XPnA8qCZd0Bz8MOFk8fEF0 CdTPApFG7dsPy45fe7KkmhAEBmXGf+XMIBUAMOMUIaUJQYcZYbRIcd4fXHntVt3/AEA5 aU7Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=oZgBbz79hmqX3go7ROSzEjM0UpKrjbRuPfObyg90ozQ=; b=pnFoJB9r0CIDlynm8oAs6shbk/HfgOgO/5qVOB+ei69uX0bXm1I/FJNh7ggxndQjnA UAr/JU3QeotRq4+HpSKtKQUWTuqhSM5JNJMbu5jvn9KmnLEBFC5r7q5uYTfAYkJ5Hi9k 1hpcZpox6ydfWBCKhaaU7uhyODbmeeShPliSHyt7mj3lpy80OszIM20/DWosZuow2xh1 Ew8bNvOI8GQT7Esbplz14KZ5LGfgfZbnDjamzxXvtNMxLmFRWDIsYR1+8JhnvDWCtNt3 3UxjmQGLuLfVPx2eo8uK2Uj5SNjVj6tHGxiucQzBm+FK/5Q+VHda8IvAwq7w6naEkASJ NXiA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=accRnb7Y; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o16si5613919otp.289.2020.02.23.15.18.06; Sun, 23 Feb 2020 15:18:18 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=accRnb7Y; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1727181AbgBWXRz (ORCPT + 99 others); Sun, 23 Feb 2020 18:17:55 -0500 Received: from mail-wr1-f65.google.com ([209.85.221.65]:46583 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727064AbgBWXRz (ORCPT ); Sun, 23 Feb 2020 18:17:55 -0500 Received: by mail-wr1-f65.google.com with SMTP id g4so1880615wro.13 for ; Sun, 23 Feb 2020 15:17:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=oZgBbz79hmqX3go7ROSzEjM0UpKrjbRuPfObyg90ozQ=; b=accRnb7YPBpVPrrT3402sunXt6zcrpzUvR3P97NL9ptYD2H+bDJ5CD5t19bHvQcv+x gH9LiJHj0DmN2toqcGBhlWZqkWlZwhuvFuEd4hvCAokbWZq1IzbuDiIrsEyzL+/5k2PV rYluJm+kwydz79JKXhD45f+nmYRk3k8+qDcbU7UsbLdbummfG0rLhsJZFOAnCdn3hJWQ MUrIRKgW6opZQVzz+CmdrvzujzRiTkORFno1QTfo2xkkmxMLZDD0fS+eamHMvFx1aFvy OggQuWVDDvUw4XAoiiLQJssj7wPz9G9gcpZARA21h73swYIu79dEUSVcIDiqWTn2G932 dijQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=oZgBbz79hmqX3go7ROSzEjM0UpKrjbRuPfObyg90ozQ=; b=Tbnal5TePLND94WhBnG7VgJwTteOmfkXfowL6aa0gvr1ByjMSE+IYgmrpeYpLj76DX YVci2fVcc/wJrA9ke0jQYmOOEREFXvd6V37yzaaUmWrHwTUvcKDssMU3Ri1KicOaNQko jsiB85eDVUkwkEK8XCLPcjU62bAmSwdtBd0Y8vnjh6KbrT0VEK1xbJ4uWyHNdAr1Sxjx pJzpne6VtiO6ESDVlHoxMtSZ1h6jV52zkXmUxEai4lc5yoxa2yR+HTiIneNf7ALLcl53 OzkopdPvP1ZbHn6VGDpzrkFVzEeTRoHQb2JwZLdRVYbENxKl7yPSrqWK11w9rsHIiryl TlYQ== X-Gm-Message-State: APjAAAU7eEtn/At+ltKdNSqNgIiUfE5tEFh5IEb5Jwp8/W6Puubg6Dve jHdppUMdbxWmji1udL+n7g== X-Received: by 2002:adf:e746:: with SMTP id c6mr59555131wrn.323.1582499873385; Sun, 23 Feb 2020 15:17:53 -0800 (PST) Received: from ninjahost.lan (host-2-102-13-223.as13285.net. [2.102.13.223]) by smtp.googlemail.com with ESMTPSA id q6sm8968203wrf.67.2020.02.23.15.17.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 23 Feb 2020 15:17:52 -0800 (PST) From: Jules Irenge To: boqun.feng@gmail.com Cc: jbi.octave@gmail.com, linux-kernel@vger.kernel.org Subject: [PATCH 00/30] Lock warning cleanups Date: Sun, 23 Feb 2020 23:16:41 +0000 Message-Id: <20200223231711.157699-1-jbi.octave@gmail.com> X-Mailer: git-send-email 2.24.1 In-Reply-To: <0/30> References: <0/30> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch series adds missing annotations to various functions, that register warnings of context imbalance when built with Sparse tool. The adds fix the warnings, improve on readability odf the code and give better insight or directive on what the functions are actually doing. Jules Irenge (30): btrfs: Add missing annotation for release_extent_buffer() dax: Add missing annotations ofr dax_read_lock() and dax_read_unlock() xfs: Add missing annotation to xfs_ail_check() sctp: Add missing annotation for sctp_err_finish() sctp: Add missing annotation for sctp_transport_walk_start() sctp: Add missing annotation for sctp_transport_walk_stop() net: Add missing annotation for llc_seq_start() netrom: Add missing annotation for nr_info_start() netrom: Add missing annotation for nr_info_stop() net: netrom: Add missing annotation for nr_node_start() net: netrom: Add missing annotation for nr_node_stop() net: netrom: Add missing annotation for nr_neigh_start() net: netrom: Add missing annotation for nr_neigh_stop() dccp: Add missing annotation for dccp_child_process() af_unix: Add missing annotation for unix_wait_for_peer() proc: Add missing annotation for close_pdeo() mm/zsmalloc: Add missing annotation for zs_map_object() mm/zsmalloc: Add missing annotation for zs_unmap_object() mm/zsmalloc: Add missing annotation for migrate_write_lock() mm/zsmalloc: Add missing annotation for migrate_write_unlock() scsi: csiostor: Add missing annotation for csio_scsi_cleanup_io_q() ACPI: OSL: Add missing annotation for acpi_os_acquire_lock() ACPI: OSL: Add missing annotation for acpi_os_release_lock() dmaengine: mic_x100_dma: Add missing annotation for mic_dma_tx_submit_unlock() zram: Add missing annotatin for zram_slot_lock() zram: Add missing annotatin for zram_slot_unlock() habanalabs: Add missing annotation for goya_hw_queues_lock() habanalabs: Add missing annotation for goya_hw_queues_unlock() sgi-xp: Add missing annotation for xpc_disconnect_channel() sgi-xp: Add missing annotation for ocfs2_inode_cache_lock() and ocfs2_inode_cache_unlock() drivers/acpi/osl.c | 2 ++ drivers/block/zram/zram_drv.c | 2 ++ drivers/dax/super.c | 4 ++-- drivers/dma/mic_x100_dma.c | 1 + drivers/misc/habanalabs/goya/goya.c | 2 ++ drivers/misc/sgi-xp/xpc_channel.c | 1 + drivers/scsi/csiostor/csio_scsi.c | 1 + fs/btrfs/extent_io.c | 1 + fs/ocfs2/inode.c | 2 ++ fs/proc/inode.c | 1 + fs/xfs/xfs_trans_ail.c | 1 + mm/zsmalloc.c | 4 ++++ net/dccp/minisocks.c | 1 + net/llc/llc_proc.c | 2 +- net/netrom/af_netrom.c | 2 ++ net/netrom/nr_route.c | 4 ++++ net/sctp/input.c | 1 + net/sctp/socket.c | 4 ++-- net/unix/af_unix.c | 1 + 19 files changed, 32 insertions(+), 5 deletions(-) -- 2.24.1