Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3221702imu; Sat, 24 Nov 2018 00:26:53 -0800 (PST) X-Google-Smtp-Source: AFSGD/WCBw6gU9G9utSAtP2gVxDcV6o8lYE376natqMRhknNSblvMxrsoG/LDyKKzmhQPcxyxjcc X-Received: by 2002:a63:3e05:: with SMTP id l5mr16001634pga.96.1543048012959; Sat, 24 Nov 2018 00:26:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543048012; cv=none; d=google.com; s=arc-20160816; b=mHaCa1ZhN86LdtER58ca6H4xxhVMS94gJ3bLQgcXCaSNuHHB1lvvmpENMUCKJME6U/ /kG75W6TUZPlPVxHks49CdmAnOqD4U+NhxM2fni2nF5Wi/GhIW4fuQ5YfFjMhR0+2uEv gIbqnbPCyusDDFOD85q4ldSz9ib80RG5uNEzTUk8+VLVyvjq8umqlOzeW/3IY7xQVKM5 Gq+RpYBB97cl025HfupIujfVhz4oNBWA9u/57DfR+pSsoqHueSwI5Qo/iSrzVPKtjhxS YC10le2xun7yFHkMkfI8JGiuRk1jcMJxH9NEclKs6sl+dJyL69T6F+WNMVG2agL3iz1B n3tA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=yhP3K5HcdfCAroFnskVcIMJwgZFxlm2bTaNNpGRRNuo=; b=K502Be8knCpJr9ItLurBZEw9I2RagUZbRp/jn39hbLQTJQrhjLs4ziB0QHCpZ98foK K4xxXGRunfcjj7EYTSQD3+vM6fTOOFBPCsFtYWwk00Nibsu5O43K3MEc8MsH1xOBuE55 AG3pRNPXvDkTMxagaQKwnYA5iSzCMBf0MMzf7XYR6U7yjnc//GaC7RsQ9a8xU6sQCXDa JW5RDcX9M8LGw6O4ALTkvile284eTU/9knKxMRahN4KHUQnMLHWUQo4Qtt8S/Aua6ww5 cjtoF1xJn7qZp12mX3hzlzsmo8zyudbBaclttx++9kwATHLB6lMjqNyqQQKoSWe8WwUU jjyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=ryaooX5w; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o125-v6si42992393pfb.35.2018.11.24.00.26.38; Sat, 24 Nov 2018 00:26:52 -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=@amarulasolutions.com header.s=google header.b=ryaooX5w; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2409559AbeKWVqx (ORCPT + 99 others); Fri, 23 Nov 2018 16:46:53 -0500 Received: from mail-ed1-f67.google.com ([209.85.208.67]:45412 "EHLO mail-ed1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2409549AbeKWVqw (ORCPT ); Fri, 23 Nov 2018 16:46:52 -0500 Received: by mail-ed1-f67.google.com with SMTP id d39so9898711edb.12 for ; Fri, 23 Nov 2018 03:03:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=yhP3K5HcdfCAroFnskVcIMJwgZFxlm2bTaNNpGRRNuo=; b=ryaooX5wX3a9ydWWXNkvQO4MUpyhXUVZ5b+DARtO0BtVYhCNWm1APWnId9dyEEKgLq 4yaEBwZTcUDgFZ4gdaSbr4h9vP9sWPZoFs/ddlVR8aF9ayyhyZ1bM+XrOgPSZDuaQ8S2 7nKZzhULOjGX2gromiqauwNkKKEFwr1qkzqlM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=yhP3K5HcdfCAroFnskVcIMJwgZFxlm2bTaNNpGRRNuo=; b=T0R/ZgINCT9CwkMLjJdPTxQgvSDiD1IxO6C03Hbc3lXlmdb8gSsvY1kWIVYs2uTzhF /7tLbvqJdQS1m5KOLdTmqb+5FFkNrTt383K13byLDU1GiuylDTju6coM6L5iL9e3Vkdr OgeOpoNWqr8Qzi3atJW0JKGLL+jM1m15P+iJWVSd8UPyzAILIehQCM9eYRc3btxxVDGN 04ddIEDmDvY6jrpsA/eS1r37VHtZXaGHcUBAfBtMIbgpca97BabVl+NrnFdFXiiR0EKv AlPLbTRF/G0EQztSEmeImGFB220wWc+TB3dBW/wN+YwutENMHiBVXNKEV804MDfrM4uT ZiXA== X-Gm-Message-State: AGRZ1gJzwkNSSPLG6133bFwyy2cosfUgEae0jmPTiRm0bWwxFoVGBFs5 RcAGKJQ2eFT0UXtCSD0cHQmCYg== X-Received: by 2002:a17:906:1353:: with SMTP id x19-v6mr11182468ejb.23.1542970982865; Fri, 23 Nov 2018 03:03:02 -0800 (PST) Received: from andrea (85.100.broadband17.iol.cz. [109.80.100.85]) by smtp.gmail.com with ESMTPSA id s19-v6sm2647240ejz.2.2018.11.23.03.03.01 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 23 Nov 2018 03:03:02 -0800 (PST) Date: Fri, 23 Nov 2018 12:02:55 +0100 From: Andrea Parri To: Sebastian Andrzej Siewior Cc: zhe.he@windriver.com, catalin.marinas@arm.com, tglx@linutronix.de, rostedt@goodmis.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, linux-rt-users@vger.kernel.org, boqun.feng@gmail.com Subject: Re: [PATCH v2] kmemleak: Turn kmemleak_lock to raw spinlock on RT Message-ID: <20181123110226.GA5125@andrea> References: <1542877459-144382-1-git-send-email-zhe.he@windriver.com> <20181123095314.hervxkxtqoixovro@linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181123095314.hervxkxtqoixovro@linutronix.de> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > is this an RT-only problem? Because mainline should not allow read->read > locking or read->write locking for reader-writer locks. If this only > happens on v4.18 and not on v4.19 then something must have fixed it. Probably misunderstanding, but I'd say that read->read locking is "the norm"...? If you don't use qrwlock, readers are also "recursive", in part., P0 P1 read_lock(l) write_lock(l) read_lock(l) won't block P0 on the second read_lock(). (qrwlock somehow complicate the analysis; IIUC, they are recursive if and only if in_interrupt().). Andrea > > > Sebastian