* PG_locked vs PG_writeback
@ 2007-07-06 9:57 sridhar lanka
0 siblings, 0 replies; only message in thread
From: sridhar lanka @ 2007-07-06 9:57 UTC (permalink / raw)
To: linux-kernel
I see that in 2.6 kernels, page lock (PG_locked) is cleared and
PG_writeback is set
when the page is submitted for i/o. Refer __block_write_full_page().
However the header file says that
" During disk I/O, PG_locked is used. This bit is set before I/O and
* reset when I/O completes. page_waitqueue(page) is a wait queue of all tasks
* waiting for the I/O on this page to complete.
"
Is the comment correct?
Does this mean that a page can be written to (dirtied) while the same page
is being written to by the low level driver. From what i can see PG_locked is
only ensuring that 2 threads don't read the same page but does not gate writes
or flushes of the page (partially). On the other hand PG_writeback is gating
another write if the same page is already being flushed.
appreciate help.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-07-06 9:57 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-07-06 9:57 PG_locked vs PG_writeback sridhar lanka
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®