LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 02-24-2020, 09:45 PM   #1
dfatlq
Member
 
Registered: May 2012
Posts: 49

Rep: Reputation: Disabled
In kernel V5 blk_fetch_request() and blk_init_queue() gone. Now What?


I have a virtual block device that is backed by a file. Works great, but now Linux V5 broke everything. Is there a migration guide to use whatever the new functions are?
 
Old 02-24-2020, 11:50 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,159

Rep: Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125
That would be a result of blk-mq. It has been in the wings for an awful long time.
I haven't looked, but I'll have a small wager that there are threads on lkml.

Later: perhaps have a read of this
 
Old 02-26-2020, 12:25 AM   #3
dfatlq
Member
 
Registered: May 2012
Posts: 49

Original Poster
Rep: Reputation: Disabled
You're right, I migrated over, wasn't too bad but have lots of questions. First, does this mean it handles worker threads itself and I can get rid of mine? I presumed so, so I removed it. Next, what are the correct return codes for handling the function that handles the "queue_rq" items (say if I did send it to a worker, when would I "blk_mq_start_request()", before adding to worker queue or after worker starts it? Right now I did away with worker, but I still have all these open questions. Could you find docs for it?

static struct blk_mq_ops _mq_ops = {
.queue_rq = queue_rq,
};
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Half my memory gone! (i mean GONE) pengu Ubuntu 9 05-09-2007 05:50 AM
kde sound options gone except for root, login sound gone memphisSuseUser Linux - Distributions 2 12-10-2004 05:55 PM
Partitions Gone, Partitions Gone PhuckFonix Linux - Newbie 8 05-22-2004 05:35 PM
gone to gentoo... and then gone back ? cato4liberty Linux - General 3 04-06-2004 01:15 AM
RPM was gone, Now it's back Though it might as well be gone Null Linux - Software 1 03-02-2003 03:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 08:12 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration