linux-scsi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* nr_pages calculation in scsi_req_map_sg()
@ 2008-07-22 12:43 Jan Beulich
  2008-07-22 13:28 ` Boaz Harrosh
  0 siblings, 1 reply; 4+ messages in thread
From: Jan Beulich @ 2008-07-22 12:43 UTC (permalink / raw)
  To: James.Bottomley; +Cc: linux-scsi

James,

while reviewing code derived from that function I found this calculation
to be suspicious: I would think that it should get it wrong when both
start and end of the buffer area are misaligned (e.g. consider the case
where sgl->offset equals PAGE_SIZE-1 and bufflen equals 2 - the result
would be 1 when it should have been 2).
Is there something preventing this from happening?

Thanks, Jan


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

end of thread, other threads:[~2008-07-22 15:12 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-22 12:43 nr_pages calculation in scsi_req_map_sg() Jan Beulich
2008-07-22 13:28 ` Boaz Harrosh
2008-07-22 14:36   ` Jan Beulich
2008-07-22 15:11     ` Boaz Harrosh

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