linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* question about link_mem_sections()
@ 2011-12-12 12:35 Kay Sievers
  2011-12-12 12:45 ` Robin Holt
  0 siblings, 1 reply; 6+ messages in thread
From: Kay Sievers @ 2011-12-12 12:35 UTC (permalink / raw)
  To: Robin Holt; +Cc: Greg Kroah-Hartmann, LKML

Robin,

you added find_memory_block_hinted() with:
  http://git.kernel.org/?p=linux/kernel/git/torvalds/linux.git;a=commitdiff;h=63d027a63888e993545d10fdfe4107d543f01bca

I try to understand what's going on here, because we need to switch
away from 'struct sysdev'.

In the loop over the node data you call find_memory_block_hinted() in
a row, which might all take a reference. At the end of the section you
drop only the last reference of the iteration. The code before your
change dropped all references inside the loop.

Could you please explain the intended behaviour?

If all is right, we should at least move the now wrong comment where is belongs.

Thanks,
Kay

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-12-22  9:30 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-12 12:35 question about link_mem_sections() Kay Sievers
2011-12-12 12:45 ` Robin Holt
2011-12-12 13:11   ` Kay Sievers
2011-12-12 13:49     ` Robin Holt
2011-12-22  1:18       ` Kay Sievers
2011-12-22  9:30         ` Robin Holt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).