LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-07-2012, 01:02 AM   #1
sanrio alvares
LQ Newbie
 
Registered: Apr 2010
Location: Mumbai, India
Distribution: ubuntu, fedora, android
Posts: 12

Rep: Reputation: 0
Who wakes the kthreadd daemon during SD card read?


I would like to know who wakes the kthread daemon up, when a read from the SD card is done using vfs_read. According to the code flow the kthreadd will wake up the mmcqd (mmc_queue_thread) which will process the read/write requests to the SD driver.

The issue I am facing here is although the vfs_read to the SD card is called by the USB Mass Storage driver, the read does not proceed to the mmc_queue_thread. This leads to old contents of the SD card being shown on PC.

Here is the kernel stack after vfs_read generated from sdhci_send_command(). ------------[ cut here ]------------ WARNING: at /vobs/iandroid/src/kernel/drivers/mmc/host/mx_sdhci.c:495 sdhci_send_command+0x120/0x758() Modules linked in: g_mot_android mxc91341_oh_udc sipcttydrv aplogger coredump bploader sipcdrv mu_drv [] (dump_stack+0x0/0x14) from [] (warn_slowpath+0x68/0x84)

[] (warn_slowpath+0x0/0x84) from [] (sdhci_send_command+0x120/0x758) r3:00000033 r2:00000000 r7:c6605f04 r6:c6605f5c r5:c65305c0 r4:c0409510

[] (sdhci_send_command+0x0/0x758) from [] (sdhci_request+0x188/0x1bc)

[] (sdhci_request+0x0/0x1bc) from [] (mmc_wait_for_req+0x110/0x128) r8:c656f870 r7:c6605dc8 r6:00000000 r5:c6530400 r4:c6605ef0

[] (mmc_wait_for_req+0x0/0x128) from [] (mmc_blk_issue_rq+0x1f4/0x7b0) r7:c642ae00 r6:00000000 r5:c64daeac r4:c64daea0

[] (mmc_blk_issue_rq+0x0/0x7b0) from [] (mmc_queue_thread+0x134/0x154)

[] (mmc_queue_thread+0x0/0x154) from [] (kthread+0x54/0x80) r8:00000000 r7:00000000 r6:00000000 r5:c0248330 r4:fffffffc

[] (kthread+0x0/0x80) from [] (do_exit+0x0/0x738) r5:00000000 r4:00000000 ---[ end trace 24b57c573e7a44e3 ]---
 
  


Reply

Tags
devicedrivers, filesystems, kernel, mmc



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
[SOLVED] Clarification on how the I/O on a socket wakes up selec() jork Linux - Kernel 2 06-26-2010 01:16 PM
Program to read total read/write cycles for compact flash card timetraveler Linux - Hardware 0 05-06-2010 09:49 PM
Daemon to read from com ports bzzz Programming 4 02-02-2008 12:52 PM
Who wakes up the hard drive? shturm Fedora 3 01-09-2007 10:34 PM
named daemon variable ${ROOTDIR} in init.d does not allow zones to be read r00tnuke Red Hat 0 01-24-2004 05:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:56 AM.

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