lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:	Thu, 1 Apr 2010 21:54:33 +0200
From:	Jan Kara <jack@...e.cz>
To:	Surbhi Palande <Surbhi.Palande@...onical.com>
Cc:	ext4 development <linux-ext4@...r.kernel.org>
Subject: Re: question on sync()

  Hi,

> 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?
  It's mostly a leftover from times when pdflush did background writing and
sync_filesystem() was submitting IO on it's own (i.e., not leaving the work on
flusher threads). Currently, you are right that wakeup_flusher_threads() is
superfluous. But the whole sync code would need a cleanup to properly reflect
the fact that know *all* the writes are done in background flusher threads.
For example __sync_filesystem() in wait=0 case doesn't make much sense
currently.

								Honza
-- 
Jan Kara <jack@...e.cz>
SuSE CR Labs
--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ