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] [day] [month] [year] [list]
Message-ID: <zrxbf3nzuyhv2xt6xof7fn2bodthwiib7sooeknt2cdsivdpiv@qezwyhi3shgo>
Date: Tue, 17 Jun 2025 12:01:44 +0200
From: Jan Kara <jack@...e.cz>
To: Junxuan Liao <ljx@...wisc.edu>
Cc: Jan Kara <jack@...e.cz>, linux-kernel@...r.kernel.org, 
	linux-doc@...r.kernel.org, linux-fsdevel@...r.kernel.org, 
	"Matthew Wilcox (Oracle)" <willy@...radead.org>, Jonathan Corbet <corbet@....net>, 
	Alexander Viro <viro@...iv.linux.org.uk>, Christian Brauner <brauner@...nel.org>
Subject: Re: [PATCH 1/1] docs/vfs: update references to i_mutex to i_rwsem

On Mon 16-06-25 11:21:17, Junxuan Liao wrote:
> 
> 
> On 6/16/25 5:10 AM, Jan Kara wrote:
> > Otherwise the changes look good to me.
> 
> Thanks! Just for clarification, is the __d_move comment accurate? i.e.
> Does it assume the two i_rwsem's are locked in shared mode?

Currently, both i_rwsems are expected to be held exclusively in this case.
Generally anything modifying directory contents must be holding i_rwsem of
that directory exclusively. However note that this is subject to change at
least in some cases with the work Neil Brown is doing [1].

								Honza

[1] https://lore.kernel.org/linux-fsdevel/20250609075950.159417-1-neil@brown.name/
-- 
Jan Kara <jack@...e.com>
SUSE Labs, CR

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ