Rohith Surabattula <rohiths.msft@xxxxxxxxx> wrote: > I have tested netfs integration with fsc mount option enabled. But, I > observed function "netfs_cache_prepare_read" always returns > "NETFS_DOWNLOAD_FROM_SERVER" because cres->ops(i.e cachefiles > operations) is not set. I see it download from the server and write to the cache: # cat /proc/fs/fscache/stats ... IO : rd=0 wr=4 <---- no reads, four writes made RdHelp : DR=0 RA=4 RP=0 WB=0 WBZ=0 rr=0 sr=0 RdHelp : ZR=0 sh=0 sk=0 RdHelp : DL=4 ds=4 df=0 di=0 RdHelp : RD=0 rs=0 rf=0 RdHelp : WR=4 ws=4 wf=0 Turning on the cachefiles_vol_coherency tracepoint, I see: kworker/2:2-1040 [002] ..... 585.499799: cachefiles_vol_coherency: V=00000003 VOL BAD cmp B=480004 kworker/2:2-1040 [002] ..... 585.499872: cachefiles_vol_coherency: V=00000003 VOL SET ok B=480005 every time I unmount and mount again. One of the fields is different each time. Using the netfs tracepoints, I can see the download being made from the server and then the subsequent write to the cache: md5sum-4689 [003] ..... 887.382290: netfs_read: R=00000005 READAHEAD c=0000004e ni=86 s=0 20000 md5sum-4689 [003] ..... 887.383076: netfs_read: R=00000005 EXPANDED c=0000004e ni=86 s=0 400000 md5sum-4689 [003] ..... 887.383252: netfs_sreq: R=00000005[0] PREP DOWN f=01 s=0 0/400000 e=0 md5sum-4689 [003] ..... 887.383252: netfs_sreq: R=00000005[0] SUBMT DOWN f=01 s=0 0/400000 e=0 cifsd-4687 [002] ..... 887.394926: netfs_sreq: R=00000005[0] TERM DOWN f=03 s=0 400000/400000 e=0 cifsd-4687 [002] ..... 887.394928: netfs_rreq: R=00000005 ASSESS f=22 cifsd-4687 [002] ..... 887.394928: netfs_rreq: R=00000005 UNLOCK f=22 kworker/u8:4-776 [000] ..... 887.395000: netfs_rreq: R=00000005 WRITE f=02 kworker/u8:4-776 [000] ..... 887.395005: netfs_sreq: R=00000005[0] WRITE DOWN f=03 s=0 400000/400000 e=0 kworker/3:2-1001 [003] ..... 887.627881: netfs_sreq: R=00000005[0] WTERM DOWN f=03 s=0 400000/400000 e=0 kworker/3:2-1001 [003] ..... 887.628163: netfs_rreq: R=00000005 DONE f=02 kworker/3:2-1001 [003] ..... 887.628165: netfs_sreq: R=00000005[0] FREE DOWN f=03 s=0 400000/400000 e=0 kworker/u8:4-776 [000] ..... 887.628216: netfs_rreq: R=00000005 FREE f=02 Can you mount a cifs share with "-o fsc", read a file and then look in /proc/fs/fscache/cookies and /proc/fs/fscache/stats for me? David -- Linux-cachefs mailing list Linux-cachefs@xxxxxxxxxx https://listman.redhat.com/mailman/listinfo/linux-cachefs