Skip to content

Commit b8ab956

Browse files
jankaraaxboe
authored andcommitted
block: Expand a bit documentation about elevator_allow_merge_fn
Explain that two requests can be merged without elevator_allow_merge_fn() being called. Signed-off-by: Jan Kara <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
1 parent e167dfb commit b8ab956

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Documentation/block/biodoc.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -946,7 +946,11 @@ elevator_allow_merge_fn called whenever the block layer determines
946946
request safely. The io scheduler may still
947947
want to stop a merge at this point if it
948948
results in some sort of conflict internally,
949-
this hook allows it to do that.
949+
this hook allows it to do that. Note however
950+
that two *requests* can still be merged at later
951+
time. Currently the io scheduler has no way to
952+
prevent that. It can only learn about the fact
953+
from elevator_merge_req_fn callback.
950954

951955
elevator_dispatch_fn* fills the dispatch queue with ready requests.
952956
I/O schedulers are free to postpone requests by

0 commit comments

Comments
 (0)