LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 04-15-2014, 07:44 AM   #1
ahmadnouralizadeh
LQ Newbie
 
Registered: Dec 2013
Posts: 15

Rep: Reputation: Disabled
lock_page_killable doesn't work


In the following code extracted from linux kernel 3.14 (mm/filemap.c) function lock_page_killable in line 1259 doesn't block when I comment function readpage in line 1248.
Code:
1240 readpage:
1241                 /*
1242                  * A previous I/O error may have been due to temporary
1243                  * failures, eg. multipath errors.
1244                  * PG_error will be set again if readpage fails.
1245                  */
1246                 ClearPageError(page);
1247                 /* Start the actual read. The read will unlock the page. */
1248                 error = mapping->a_ops->readpage(filp, page);
1249 
1250                 if (unlikely(error)) {
1251                         if (error == AOP_TRUNCATED_PAGE) {
1252                                 page_cache_release(page);
1253                                 goto find_page;
1254                         }
1255                         goto readpage_error;
1256                 }
1257 
1258                 if (!PageUptodate(page)) {
1259                         error = lock_page_killable(page);
1260                         if (unlikely(error))
1261                                 goto readpage_error;
1262                         if (!PageUptodate(page)) {
1263                                 if (page->mapping == NULL) {
1264                                         /*
1265                                          * invalidate_mapping_pages got it
1266                                          */
1267                                         unlock_page(page);
1268                                         page_cache_release(page);
1269                                         goto find_page;
1270                                 }
1271                                 unlock_page(page);
1272                                 shrink_readahead_size_eio(filp, ra);
1273                                 error = -EIO;
1274                                 goto readpage_error;
1275                         }
1276                         unlock_page(page);
1277                 }
1278
What is wrong?
Thanks in advance!

Last edited by ahmadnouralizadeh; 04-15-2014 at 08:07 AM.
 
  


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
totem-pps plugin doesn't seem to work (doesn't show up) prushik Linux - Software 1 07-29-2013 09:51 AM
Google Hangout doesn't work, and Mplayer doesm't work without -ao alsa flagGoogle H ranban282 Linux - Software 0 02-20-2012 04:23 AM
Keyboard doesn't work right click on mouse doesn't work ramblinrick Linux Mint 2 10-15-2010 01:10 AM
DNS lookup doesn't work, ping, firefox will not work properly lovemov Linux - Networking 2 04-23-2009 02:30 PM
logout in x doesn't work and nvidia doesn't boot Meriadoc Linux - Newbie 2 06-18-2004 12:32 PM

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

All times are GMT -5. The time now is 05:37 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