summaryrefslogtreecommitdiffstats
path: root/drivers/md
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2019-04-04 18:56:16 +0200
committerSong Liu <songliubraving@fb.com>2019-04-10 15:26:09 -0700
commitefcd487c69b9d968552a6bf80e7839c4f28b419d (patch)
tree0e9bde94b7410e5c4e6e81ac2e0a2e1170e911b7 /drivers/md
parent368ecade0532982c8916a49e66b8105413d8db59 (diff)
downloadlinux-efcd487c69b9d968552a6bf80e7839c4f28b419d.tar.bz2
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')
-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;