From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752621AbcF2MrI (ORCPT ); Wed, 29 Jun 2016 08:47:08 -0400 Received: from LGEAMRELO12.lge.com ([156.147.23.52]:45714 "EHLO lgeamrelo12.lge.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751767AbcF2MrG (ORCPT ); Wed, 29 Jun 2016 08:47:06 -0400 X-Original-SENDERIP: 156.147.1.121 X-Original-MAILFROM: byungchul.park@lge.com X-Original-SENDERIP: 10.177.222.33 X-Original-MAILFROM: byungchul.park@lge.com Date: Wed, 29 Jun 2016 21:45:25 +0900 From: Byungchul Park To: peterz@infradead.org, mingo@kernel.org Cc: linux-kernel@vger.kernel.org, npiggin@suse.de, sergey.senozhatsky@gmail.com, gregkh@linuxfoundation.org, minchan@kernel.org Subject: Re: [PATCH 0/5] Implement bitlock map allocator Message-ID: <20160629124525.GR2279@X58A-UD3R> References: <1466398515-1005-1-git-send-email-byungchul.park@lge.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1466398515-1005-1-git-send-email-byungchul.park@lge.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 20, 2016 at 01:55:10PM +0900, Byungchul Park wrote: > Currently, bit-based lock e.g. bit_spin_lock cannot use the lock > correctness validator using lockdep. However, it would be useful if > the validator supports for even bit-based lock as well. > > Therefore, this patch provides interface for allocation and freeing > lockdep_map for bit-based lock so that the bit-based lock can also use > the lock correctness validator with the lockdep_map, allocated for each > bit address. > > This patch can be applied to any bit_spin_lock user except slab > allocator where I am not sure if using kmalloc is safe. Anyway I chose > two example to apply bitlock map allocator, zram and buffer head. > And applied it and included it in this patch set. What do you think this proposal to make bit-based lock can use lockdep? > > Byungchul Park (5): > lockdep: Implement bitlock map allocator > lockdep: Apply bitlock to bit_spin_lock > lockdep: Apply bit_spin_lock lockdep to zram > fs/buffer.c: Remove trailing white space > lockdep: Apply bit_spin_lock lockdep to BH_Uptodate_Lock > > drivers/block/zram/zram_drv.c | 10 +++ > fs/buffer.c | 24 +++---- > include/linux/bit_spinlock.h | 57 ++++++++++++++-- > include/linux/bitlock.h | 20 ++++++ > kernel/locking/Makefile | 1 + > kernel/locking/bitlock_map.c | 147 ++++++++++++++++++++++++++++++++++++++++++ > lib/Kconfig.debug | 10 +++ > 7 files changed, 252 insertions(+), 17 deletions(-) > create mode 100644 include/linux/bitlock.h > create mode 100644 kernel/locking/bitlock_map.c > > -- > 1.9.1