Re: Q: deadlock

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> Oh...yes I missed this.....So when you sleep trying to get hold of 
> pages in
> memory, the new process may try to acquire the same spinlock and 
> will spin on it
> until you notify the sleeping process that more pages are 
> available and then it
> will release the spinlock.

Consider the case, when the memory is full and swapper cannot get the 
any more pages in. The pages are that of the new process that is 
spinning on the lock.

----- Original Message -----
From: Ketan Mukadam <ketan@iitk.ac.in>
Date: Monday, March 11, 2002 9:33 pm
Subject: Re: Q: deadlock

> 
> ==>>But I don't think that if you block in copy_to_user, > 
> scheduler is >
> ==>called. So that there will be no deadlock.
> ==>
> ==> IMHO, you may not have all the pages in the memory when you 
> are trying 
> ==>to write to the pages. Once you get them in memory, you will 
> lock the 
> ==>pages while doing the transfers. Now once the pages are not on 
> the 
> ==>memory, you have to sleep while the swapper get the pages in 
> the memory.
> 
> Oh...yes I missed this.....So when you sleep trying to get hold of 
> pages in
> memory, the new process may try to acquire the same spinlock and 
> will spin on it
> until you notify the sleeping process that more pages are 
> available and then it
> will release the spinlock.
> 
> 
> Ketan
> ***
> "Few things are harder to put up with than a good example. " 
> - Mark Twain (1835-1910)
> ***
> 
> 
begin:vcard
n:Agarwal;Sumit
fn:Sumit Agarwal
tel;cell:+919845205210
tel;fax:+91-80-5732696
tel;home:+919845205210
tel;work:+91-805732296 / 93 extn. 5243
url:www.wipro.com
org:Wipro Technologies;SIDC, Embedded and Internet Division
adr:;;Wipro Technologies, Chamundi Complex, No.26, Hosur Main Road, Bommanahalli;Bangalore;Karnataka;560068;INDIA
version:2.1
email;internet:sumit.agarwal@wipro.com
title:Senior Software Engineer
end:vcard


**************************Disclaimer************************************

Information contained in this E-MAIL being proprietary to Wipro Limited
is 'privileged' and 'confidential' and intended for use only by the
individual or entity to which it is addressed. You are notified that any
use, copying or dissemination of the information contained in the E-MAIL
in any manner whatsoever is strictly prohibited.


 ********************************************************************

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux