Re: [PATCH v2 10/26] block/ioctl: Add lock context annotations

Christoph Hellwig
2026-03-26T06:39:40Z

On Wed, Mar 25, 2026 at 02:44:51PM -0700, Bart Van Assche wrote:
> Add a lock context annotation that is required for Clang's thread-safety
> analysis.

This doesn't explain much. The problem seems to be that ->synmc
can drop the holder lock. I think we need a proper way to identify
how function pointers acquire or drop locks as said before instead of
using a big, misleading and incorrectly documented hammer like this.