Re: Basic doubt regarding block layer

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

 



There are two types of function calls , blocking and non blocking ,
blocking --in whihc we might sleep for some processing ,
Non blocking -- we will prefer to return from function instead of sleeping
Now

write function comes under first category --
and we will sleep till data is written to target block device.


Nidhi


On Tue, Jun 29, 2010 at 8:30 PM, Sudheer <inbox1.sudheer@xxxxxxxxx> wrote:
> One basic doubt regarding block layer & write system call. When a
> process writes to a file in blocking mode, when the 'write' system
> call returns,
>
> A. will the process be returned only after actually writing the data
> on to the target block device? In this case we will get the benefit of
> elevator only if multiple processes are writing to the adjacent
> locations in the device. Is this true?
>
>
> OR
>
> B. will the process be returned after scheduling the writing (say
> after passing the data to the elevator)? If this case is true, how
> would the process ensure that the data has been actually written on to
> the block device?
>
>
>
> --
> Thanks
> Sudheer
>
> --
> To unsubscribe from this list: send an email with
> "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
> Please read the FAQ at http://kernelnewbies.org/FAQ
>
>



-- 
Thanks & Regards
Nidhi Mittal Hada
Scientific officer D
Computer Division
Bhabha Atomic Research Center
Mumbai

http://nidhi-searchingmyself.blogspot.com/

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ



[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