Metadata writeback cache support (LU-10938)

[LU-14757] WBC: MemFS lookup fallback to Lustre lookup Created: 11/Jun/21  Updated: 10/Jan/22

Status: Open
Project: Lustre
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Technical task Priority: Minor
Reporter: Qian Yingjin Assignee: Qian Yingjin
Resolution: Unresolved Votes: 0
Labels: None

Issue Links:
Related
Rank (Obsolete): 9223372036854775807

 Description   

In WBC lock drop flush mode, when enter into the code path @memfs_lookup during the new file creation, and the dir (parent inode) is already flushed (WBC state for the directory becomes WBC_STATE_FL_NONE), at this time, it will fall back into the Lustre lookup path @ll_lookup_nd to perform lookup from MDT. The old the Lustre lookup path with LOOKUP_CREATE | LOOKUP_OPEN will return ERR_PTR(-ENOENT) wrongly.

In this patch, it fixed this bug, and when lookup from MDT returns -ENOENT to indicate the name is not existed, it will return NULL instead of ERR_PTR(-ENOENT).



 Comments   
Comment by Gerrit Updater [ 11/Jun/21 ]

Yingjin Qian (qian@ddn.com) uploaded a new patch: https://review.whamcloud.com/43984
Subject: LU-14757 wbc: MemFS lookup fallback to Lustre lookup
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 6387aed0ea44b0f5e87d917d015937e14ffcd3c8

Generated at Sat Feb 10 03:12:31 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.