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)
commit4631f39f058b98bfa3fd1d6ffb491fa9e70e3e81
treefadee4cd84c0cf1d6ebbf54847008687d35aa157
parent4f4ee2bf32860e4aa3b07be3fc9224fbe6cce4fe
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