[LU-15233] Remove extraneous call to cl_page_delete Created: 15/Nov/21  Updated: 13/Sep/23  Resolved: 13/Sep/23

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

Type: Improvement Priority: Minor
Reporter: Patrick Farrell Assignee: Patrick Farrell
Resolution: Fixed Votes: 0
Labels: None

Rank (Obsolete): 9223372036854775807

 Description   

LU-5108 / https://review.whamcloud.com/#/c/10458/ / b117bc837c02e2d156bb114142a28a184aa9d633 added a call to cl_page_delete to the page discard code used by the OSC lru shrinker.

This seems to have been a mistake.  cl_page_discard causes page invalidation, which calls ll_invalidatepage, which calls cl_page_delete if the page can be found.

Since the page is locked here and ll_invalidatepage checks for the page (checking that the result of cl_vmpage_page != NULL), this has probably never caused an issue.  But it's extraneous and kind of weird, and misled me a bit when working on another bug.



 Comments   
Comment by Gerrit Updater [ 15/Nov/21 ]

"Patrick Farrell <pfarrell@whamcloud.com>" uploaded a new patch: https://review.whamcloud.com/45583
Subject: LU-15233 llite: Remove extra cl_page_delete call
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 09b25e5c5ac203621a62f0a70918d1b8dfb5e2e9

Comment by Gerrit Updater [ 13/Sep/23 ]

"Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/c/fs/lustre-release/+/45583/
Subject: LU-15233 llite: Remove extra cl_page_delete call
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: fb234048b45b4000ad3654a58e71123b08e2f225

Comment by Peter Jones [ 13/Sep/23 ]

Landed for 2.16

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