diff options
author | Pawel Baldysiak <pawel.baldysiak@intel.com> | 2017-08-16 18:13:45 +0300 |
---|---|---|
committer | Shaohua Li <shli@fb.com> | 2017-08-28 17:45:48 +0300 |
commit | ddc088238cd6988bb4ac3776f403d7ff9d3c7a63 (patch) | |
tree | 7f3a97e6af0ae88416519fbfe9af9b9ed08324b0 /drivers/md/raid5.c | |
parent | 8a8e6f84ad10e7a10bde438b42926da0e9bc820f (diff) | |
download | linux-ddc088238cd6988bb4ac3776f403d7ff9d3c7a63.tar.xz |
md: Runtime support for multiple ppls
Increase PPL area to 1MB and use it as circular buffer to store PPL. The
entry with highest generation number is the latest one. If PPL to be
written is larger then space left in a buffer, rewind the buffer to the
start (don't wrap it).
Signed-off-by: Pawel Baldysiak <pawel.baldysiak@intel.com>
Signed-off-by: Artur Paszkiewicz <artur.paszkiewicz@intel.com>
Signed-off-by: Shaohua Li <shli@fb.com>
Diffstat (limited to 'drivers/md/raid5.c')
-rw-r--r-- | drivers/md/raid5.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/md/raid5.c b/drivers/md/raid5.c index 6af57c6c0533..049a958d3c1e 100644 --- a/drivers/md/raid5.c +++ b/drivers/md/raid5.c @@ -7236,6 +7236,7 @@ static int raid5_run(struct mddev *mddev) pr_warn("md/raid:%s: using journal device and PPL not allowed - disabling PPL\n", mdname(mddev)); clear_bit(MD_HAS_PPL, &mddev->flags); + clear_bit(MD_HAS_MULTIPLE_PPLS, &mddev->flags); } if (mddev->private == NULL) |