Hang when make_request calls submit_bio

I am writing a lock device driver in kernel 2.6.32. We need to create a new bio and call submit_bio in make_request before redirecting the bio from the request queue to lower devices. For this, we have made a function my_sync_io (), which is similar to sync_page_io () from md.

However, our my_sync_io () function never returns. Kernel panic after 120 seconds. We think the function is waiting for something like a lock.

Does anyone know about this?

Thank.

+3
block device kernel


source to share


No one has answered this question yet

Check out similar questions:

531
What are the resources to get started with the operating system?
91
Context switches much slower in newer Linux kernels
6
wait_for_completion for submit_bio does not return in make_request
4
Manufacturer's consumer implementation in a block device driver?
2
Submitting a BIO from a work queue
1
Can the kernel event object for IoBuildDeviceIoControlRequest be allocated locally
1
Best way to read / write to another block device from kernel mode
0
Interrupt handling in a kernel thread with reverse kernel processing NetBSD on MIPS
0
Freeing a block device from a kernel module
0
I / O Context Completion in Linux Block Drivers



All Articles
Loading...
X
Show
Funny
Dev
Pics