]> git.baikalelectronics.ru Git - kernel.git/commit
md/raid5: Annotate functions that hold device_lock with __must_hold
authorLogan Gunthorpe <logang@deltatee.com>
Thu, 7 Apr 2022 16:57:13 +0000 (10:57 -0600)
committerSong Liu <song@kernel.org>
Mon, 25 Apr 2022 21:00:37 +0000 (14:00 -0700)
commit55d2dc663ca2f28103e9b29bbeb4569cc4bcce25
treefadee4cd84c0cf1d6ebbf54847008687d35aa157
parent83ff5d46ca27b87a9ea407b55cfb8c11d4c21cec
md/raid5: Annotate functions that hold device_lock with __must_hold

A handful of functions note the device_lock must be held with a comment
but this is not comprehensive. Many other functions hold the lock when
taken so add an __must_hold() to each call to annotate when the lock is
held.

This makes it a bit easier to analyse device_lock.

Signed-off-by: Logan Gunthorpe <logang@deltatee.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Song Liu <song@kernel.org>
drivers/md/raid5.c