From: Surbhi Palande <Surbhi.Palande@canonical.com>
To: ext4 development <linux-ext4@vger.kernel.org>
Subject: question on sync()
Date: Wed, 31 Mar 2010 19:29:17 +0300 [thread overview]
Message-ID: <1270052957.26517.24.camel@subu> (raw)
Hie,
While looking at fs/sync.c :: sync(), I found out that:
1) sync() first calls wakeup_flusher_threads() which ultimately calls
bdi_alloc_queue_work() with WB_SYNC_NONE for every bdi in the bdi_list.
2) sync() immediate then calls sync_filesystems(0) which does the same
thing - it calls writeback_inodes_sb() which finally calls
bdi_alloc_queue_work() with WB_SYNC_NONE for every bdi corresponding to
every filesystem.
If it is possible, then I wanted to know why there are effectively two
calls which ultimately call bdi_alloc_queue_work() with WB_SYNC_NONE
twice?
Thanks!
Warm Regards,
Surbhi.
next reply other threads:[~2010-03-31 16:29 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-31 16:29 Surbhi Palande [this message]
2010-04-01 19:54 ` question on sync() Jan Kara
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=1270052957.26517.24.camel@subu \
--to=surbhi.palande@canonical.com \
--cc=linux-ext4@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.