]> 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)
commit1fde71b9d74fd1c4681df02bf46fed2741b59845
treefadee4cd84c0cf1d6ebbf54847008687d35aa157
parent441d7726621d8aa309a137d151e5a99d8c9e3002
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