[LU-5304] kernel allocated memroy can be memset up to 3 times Created: 08/Jul/14  Updated: 18/Feb/15  Resolved: 15/Aug/14

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

Type: Bug Priority: Minor
Reporter: Frank Zago (Inactive) Assignee: Cliff White (Inactive)
Resolution: Fixed Votes: 0
Labels: patch

Severity: 3
Rank (Obsolete): 14818

 Description   

In some case the memory allocated by lustre could be zero-out twice (kmalloc followed by memset in LIBCFS_ALLOC_*, followed by another memset in the source code).

Additionally if GFP_ZERO is set, then the kernel will zero out the
block too. Surely that can't be too good for performance.

cfs_cpt_malloc() has a similar issue.



 Comments   
Comment by Frank Zago (Inactive) [ 08/Jul/14 ]

http://review.whamcloud.com/11011
http://review.whamcloud.com/11012

Comment by Frank Zago (Inactive) [ 09/Jul/14 ]

Added http://review.whamcloud.com/11029

Comment by Cliff White (Inactive) [ 15/Aug/14 ]

All patches have been merged

Generated at Sat Feb 10 01:50:19 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.