diff options
author | NeilBrown <neilb@suse.de> | 2015-02-25 20:21:04 -0500 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2015-04-21 18:00:43 -0400 |
commit | 5423399a84ee1d92d29d763029ed40e4905cf50f (patch) | |
tree | d245c89749eaf7d2c14b361e2885485a5be69e4f /drivers/md/raid5.h | |
parent | 486f0644c3482cbf64fe804499836e1f05abec14 (diff) |
md/raid5: change ->inactive_blocked to a bit-flag.
This allows us to easily add more (atomic) flags.
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'drivers/md/raid5.h')
-rw-r--r-- | drivers/md/raid5.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/drivers/md/raid5.h b/drivers/md/raid5.h index 6614ac5ffc0e..ebe4e24bc14d 100644 --- a/drivers/md/raid5.h +++ b/drivers/md/raid5.h | |||
@@ -509,9 +509,11 @@ struct r5conf { | |||
509 | struct llist_head released_stripes; | 509 | struct llist_head released_stripes; |
510 | wait_queue_head_t wait_for_stripe; | 510 | wait_queue_head_t wait_for_stripe; |
511 | wait_queue_head_t wait_for_overlap; | 511 | wait_queue_head_t wait_for_overlap; |
512 | int inactive_blocked; /* release of inactive stripes blocked, | 512 | unsigned long cache_state; |
513 | * waiting for 25% to be free | 513 | #define R5_INACTIVE_BLOCKED 1 /* release of inactive stripes blocked, |
514 | */ | 514 | * waiting for 25% to be free |
515 | */ | ||
516 | |||
515 | int pool_size; /* number of disks in stripeheads in pool */ | 517 | int pool_size; /* number of disks in stripeheads in pool */ |
516 | spinlock_t device_lock; | 518 | spinlock_t device_lock; |
517 | struct disk_info *disks; | 519 | struct disk_info *disks; |
@@ -526,6 +528,7 @@ struct r5conf { | |||
526 | int worker_cnt_per_group; | 528 | int worker_cnt_per_group; |
527 | }; | 529 | }; |
528 | 530 | ||
531 | |||
529 | /* | 532 | /* |
530 | * Our supported algorithms | 533 | * Our supported algorithms |
531 | */ | 534 | */ |