All of lore.kernel.org
 help / color / mirror / Atom feed
* Sharing ext4 on target storage to multiple initiators using NVMeoF
@ 2019-09-16 14:33 Daegyu Han
  2019-09-16 19:23 ` Eric Sandeen
  2019-09-17  6:48 ` Christoph Hellwig
  0 siblings, 2 replies; 6+ messages in thread
From: Daegyu Han @ 2019-09-16 14:33 UTC (permalink / raw)
  To: linux-fsdevel

Hi linux file system experts,

I want to share ext4 on the storage server to multiple initiators(node
A,B) using NVMeoF.
Node A will write file to ext4 on the storage server, and I will mount
read-only option on Node B.

Actually, the reason I do this is for a prototype test.

I can't see the file's dentry and inode written in Node A on Node B
unless remount(umount and then mount) it.

Why is that?

I think if there is file system cache(dentry, inode) on Node B, then
disk IO will occur to read the data written by Node A.

Curiously, drop cache on Node B and do blockdev --flushbufs, then I
can access the file written by Node A.

I checked the kernel code and found that flushbufs incurs
sync_filesystem() which flushes the superblock and all dirty file
system caches.

Should the superblock data structure be flushed (updated) when
accessing the disk inode?

I wonder why this happens.

Regards,

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2019-09-17 15:44 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-09-16 14:33 Sharing ext4 on target storage to multiple initiators using NVMeoF Daegyu Han
2019-09-16 19:23 ` Eric Sandeen
2019-09-17  0:44   ` Daegyu Han
2019-09-17 12:54     ` Theodore Y. Ts'o
2019-09-17 15:38       ` Daegyu Han
2019-09-17  6:48 ` Christoph Hellwig

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.