[LU-8019] Openlock breakage Created: 13/Apr/16  Updated: 21/Nov/17  Resolved: 15/Jun/16

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: None
Fix Version/s: Lustre 2.9.0

Type: Bug Priority: Major
Reporter: Oleg Drokin Assignee: WC Triage
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Duplicate
is duplicated by LU-8441 Text file busy error after overwritin... Resolved
Related
is related to LU-4367 unlink performance regression on lust... Resolved
is related to LU-4185 Incorrect permission handling when cr... Resolved
Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

Ever since LU-4367 we have a subtle case of breakage that went unnoticed.

The breakage is two-fold:
1. When an application requests an open lock, it is granted, but cannot be used. This is because revalidate always returns 0 for open requests, but we cannot get to inode from new dentry in ll_lookup_it unless we do RPC which defeats the purpose. - Impact: Low since next to nobody cares about it.

2. When an application opens a file that is already opened for the same mode - we now do not have inode access to see that there is an open handle already, so we do a needless RPC same as above to get to the inode and then discard the filehandle right away. - The impact is a bit more, but this still could only happen if we have a lookup lock on the file first, as if we don't, we still do full lookup to get from dentry to inode.



 Comments   
Comment by Gerrit Updater [ 20/May/16 ]

Oleg Drokin (oleg.drokin@intel.com) uploaded a new patch: http://review.whamcloud.com/20354
Subject: LU-8019 llite: Restore proper opencache operations
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 56ec0a1d2c7941f4a4ae7cc76d2096662583b248

Comment by Gerrit Updater [ 14/Jun/16 ]

Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/20354/
Subject: LU-8019 llite: Restore proper opencache operations
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 65d0add6057b138e753761b04583339cf39b84f6

Comment by Joseph Gmitter (Inactive) [ 15/Jun/16 ]

patch has landed to master for 2.9.0

Generated at Sat Feb 10 02:13:55 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.