-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reinstate zvol_taskq to fix aio on zvol
Commit 37f9dac removed the zvol_taskq for processing zvol request. I imagined this was removed because after we switched to make_request_fn based, we no longer received request from interrupt. However, this also made all bio request synchronous, and cause serious performance issue as the bio submitter would wait for every bio it submitted, effectly making iodepth to be 1. This patch reinstate zvol_taskq, and to make sure overlapped I/Os are ordered properly, we take range lock in zvol_request, and pass it along with bio to the I/O functions zvol_{write,discard,read}. Signed-off-by: Chunwei Chen <david.chen@osnexus.com>
- Loading branch information
Chunwei Chen
committed
Apr 10, 2017
1 parent
42db43e
commit cac30b7
Showing
2 changed files
with
163 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters