From: Christoph Hellwig Date: Thu, 4 Apr 2019 16:56:16 +0000 (+0200) Subject: md: add __acquires/__releases annotations to handle_active_stripes X-Git-Tag: v5.2-rc1~22^2~91^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=efcd487c69b9d968552a6bf80e7839c4f28b419d;p=thirdparty%2Fkernel%2Flinux.git 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 Signed-off-by: Song Liu --- diff --git a/drivers/md/raid5.c b/drivers/md/raid5.c index d794d87451444..2b0a715e70c9a 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;