Re: [PATCH 1/7] zram: switch to non-atomic entry locking

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux