Files
linux/drivers
Vishal Verma 39db562b3f md: raid10 add nowait support
[ Upstream commit c9aa889b03 ]

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>
Stable-dep-of: 72c215ed87 ("md/raid10: fix task hung in raid10d")
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-05-11 23:00:29 +09:00
..
2023-05-11 23:00:27 +09:00
2023-05-11 23:00:29 +09:00
2023-02-22 12:57:03 +01:00
2023-04-05 11:24:55 +02:00
2023-05-11 23:00:17 +09:00
2023-03-10 09:40:13 +01:00