diff options
author | Vishal Verma <vverma@digitalocean.com> | 2021-12-21 23:06:21 +0300 |
---|---|---|
committer | Song Liu <song@kernel.org> | 2022-01-06 19:37:02 +0300 |
commit | c9aa889b035fca4598ae985a0f0c76ebbb547ad2 (patch) | |
tree | 242a0831e41175c95cc68f966ebb2fc474e99c60 /drivers/md/dm-path-selector.h | |
parent | 5aa705039c4fca84575539bfa2b8a28454a3d2ca (diff) | |
download | linux-c9aa889b035fca4598ae985a0f0c76ebbb547ad2.tar.xz |
md: raid10 add nowait support
This adds nowait support to the RAID10 driver. Very similar to
raid1 driver changes. It makes RAID10 driver return with EAGAIN
for situations where it could wait for eg:
- Waiting for the barrier,
- Reshape operation,
- Discard operation.
wait_barrier() and regular_request_wait() fn are modified to return bool
to support error for wait barriers. They returns true in case of wait
or if wait is not required and returns false if wait was required
but not performed to support nowait.
Reviewed-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Vishal Verma <vverma@digitalocean.com>
Signed-off-by: Song Liu <song@kernel.org>
Diffstat (limited to 'drivers/md/dm-path-selector.h')
0 files changed, 0 insertions, 0 deletions