public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* __getblk() spinning when size != bdev->...i_blkbits
@ 2005-01-27 21:37 Zach Brown
  0 siblings, 0 replies; only message in thread
From: Zach Brown @ 2005-01-27 21:37 UTC (permalink / raw)
  To: linux-kernel


Recently I debugged something that was spinning in the for(;;) in
__getblk_slow().  It turned out it was calling __getblk() with a size
argument that didn't match the bdev's inode's i_blkbits.

grow_buffers() would add a page at the index calculated from the 4k size
argument but when __getblk_slow() got back around to looking for the
instantiated page __find_get_block_slow() would look at the index
calculated from the 1k i_blkbits and not find the new page.  Round and
round she goes.

If the different size inputs are intentional, would a simple BUG_ON() be
acceptible so that we can tell straight away if the caller messed up?

- z

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-01-27 21:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-27 21:37 __getblk() spinning when size != bdev->...i_blkbits Zach Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox