question on sync()

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

 



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.




--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Reiser Filesystem Development]     [Ceph FS]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux FS]     [Yosemite National Park]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Device Mapper]     [Linux Media]

  Powered by Linux