From: "sridhar lanka" <slanka64@gmail.com>
To: linux-kernel@vger.kernel.org
Subject: PG_locked vs PG_writeback
Date: Fri, 6 Jul 2007 15:27:18 +0530 [thread overview]
Message-ID: <c83b914b0707060257g31cd84ex4f4afc57d0bbd865@mail.gmail.com> (raw)
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.
reply other threads:[~2007-07-06 9:57 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=c83b914b0707060257g31cd84ex4f4afc57d0bbd865@mail.gmail.com \
--to=slanka64@gmail.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®