linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* raid1.c read_balance() LBD issue?
@ 2010-04-22 18:21 Jordan Russell
  2010-05-07 17:37 ` Jordan Russell
  0 siblings, 1 reply; 3+ messages in thread
From: Jordan Russell @ 2010-04-22 18:21 UTC (permalink / raw)
  To: linux-raid

raid1.c's read_balance() function has:

        const unsigned long this_sector = r1_bio->sector;

Doesn't that need to be:

        const sector_t this_sector = r1_bio->sector;

for compatibility with LBD on 32-bit platforms?

It looks as though truncating the sector number to 32 bits could cause
it to read *above* the resync window on an unsync'ed disk.

-- 
Jordan Russell

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

end of thread, other threads:[~2010-05-07 22:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-22 18:21 raid1.c read_balance() LBD issue? Jordan Russell
2010-05-07 17:37 ` Jordan Russell
2010-05-07 22:22   ` Neil Brown

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).