lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250124103009.1761-1-hdanton@sina.com>
Date: Fri, 24 Jan 2025 18:30:07 +0800
From: Hillf Danton <hdanton@...a.com>
To: Sergey Senozhatsky <senozhatsky@...omium.org>
Cc: Minchan Kim <minchan@...nel.org>,
	linux-mm@...ck.org,
	linux-kernel@...r.kernel.org
Subject: Re: [PATCH 1/7] zram: switch to non-atomic entry locking

On (25/01/22 14:57), Sergey Senozhatsky wrote:
> 
> -	for (index = 0; index < num_pages; index++)
> -		spin_lock_init(&zram->table[index].lock);
> +	for (index = 0; index < num_ents; index++)
> +		init_rwsem(&zram->locks[index].lock);

Curious if lockdep trick [1] is needed here.

[1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/fs/kernfs/file.c?id=16b52bbee482

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ