Context information in memory-allocation requests
Context information in memory-allocation requests
Posted Jan 5, 2017 18:09 UTC (Thu) by rghetta (subscriber, #39444)Parent article: Context information in memory-allocation requests
speaking from personal experience, the downside of having a flag handled the proposed way is making much more difficult future changes to GPF_NOFS behaviour. The current approach, cumbersome as it is, makes all uses of GPF_NOFS explicit, so one can know if a particular allocation has the flag set or not. With an external flag, this is much more difficult to determine, because one needs to look not only at all the call chains leading to the allocation, but also at all the possible histories of the thread.
