Messages in this thread | | | Date | Fri, 12 Mar 2021 15:49:18 +0100 | From | Greg KH <> | Subject | Re: [PATCH v4] f2fs: add sysfs nodes to get runtime compression stat |
| |
On Fri, Mar 12, 2021 at 11:42:04PM +0900, Daeho Jeong wrote: > So, do you want we protect the values here with spin_lock and just > read without spin_lock in sysfs read part?
I would not use any lock at all if this were my code. Remember, this is for debugging/information only, right? And the data is always "stale" so what is it going to be used for?
thanks,
greg k-h
| |