miss_read_end_req(9)
πΈ NAME πΈ
bestie, this is miss_read_end_req β the lil function that handles the end of a miss read request, no cap π
β¨ SYNOPSIS β¨
void miss_read_end_req (struct pcache_backing_dev_req *backing_req , int read_ret );
π ARGUMENTS π
backing_reqβ pointer to the request structure, like the main character of this whole operation π«Άread_retβ the return value ofread. yes bestie, we're looking at what the read actually gave us π
π¦ DESCRIPTION π¦
okay so picture this π
β a backing request to read data from the backing_dev just finished, and this is the function that gets called when that happens. it's giving cleanup era, it's giving wrap-up vibes.
here's the tea, fr fr: if the key associated with the request is empty (a placeholder), the function does a whole lil routine π§:
- it allocates cache space for the key β¨
- it copies the data read from the bio into the cache πΎ
- it updates the key's status π
but wait, there's a plot twist π β if the key has been overwritten by a write request during this whole process, it gets deleted from the cache tree and no further action is taken. periodt. nothing else happens. the function simply moves on π
π SEE ALSO π
kernel file ./drivers/md/dm-pcache/cache_req.c β and these iconic besties right here:
cache_data_alloc(9)submit_cache_miss_req(9)read_walk_finally(9)cache_read(9)pcache_cache_flush(9)
ngl bestie, go read those SEE ALSO entries too β iykyk ππ
and that's the page!! π brought to you by ./drivers/md/dm-pcache, dated October 2026, slaying in the kernel API manual forever βπ₯ mwah π
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms