mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-13 01:52:44 +00:00
block: add support for write hints in a bio
No functional changes in this patch, we just use up some holes in the bio and request structures to define a write hint that we psas down the stack. Ensure that we don't merge requests that have different life time hints assigned to them, and that we inherit the write hint when cloning a bio. Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
parent
c75b1d9421
commit
cb6934f8ea
5 changed files with 20 additions and 0 deletions
|
@ -225,6 +225,8 @@ struct request {
|
|||
|
||||
unsigned int extra_len; /* length of alignment and padding */
|
||||
|
||||
unsigned short write_hint;
|
||||
|
||||
unsigned long deadline;
|
||||
struct list_head timeout_list;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue