summaryrefslogtreecommitdiffstats
path: root/drivers/md/raid5.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2019-04-04 18:56:16 +0200
committerSong Liu <songliubraving@fb.com>2019-04-11 00:26:09 +0200
commitefcd487c69b9d968552a6bf80e7839c4f28b419d (patch)
tree0e9bde94b7410e5c4e6e81ac2e0a2e1170e911b7 /drivers/md/raid5.c
parentmd: add __acquires/__releases annotations to (un)lock_two_stripes (diff)
downloadlinux-efcd487c69b9d968552a6bf80e7839c4f28b419d.tar.xz
linux-efcd487c69b9d968552a6bf80e7839c4f28b419d.zip
md: add __acquires/__releases annotations to handle_active_stripes
This tells sparse that we release and reacquire the device_lock and avoids a warning. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Song Liu <songliubraving@fb.com>
Diffstat (limited to 'drivers/md/raid5.c')
-rw-r--r--drivers/md/raid5.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/md/raid5.c b/drivers/md/raid5.c
index d794d8745144..2b0a715e70c9 100644
--- a/drivers/md/raid5.c
+++ b/drivers/md/raid5.c
@@ -6159,6 +6159,8 @@ static int retry_aligned_read(struct r5conf *conf, struct bio *raid_bio,
static int handle_active_stripes(struct r5conf *conf, int group,
struct r5worker *worker,
struct list_head *temp_inactive_list)
+ __releases(&conf->device_lock)
+ __acquires(&conf->device_lock)
{
struct stripe_head *batch[MAX_STRIPE_BATCH], *sh;
int i, batch_size = 0, hash;