stec-inc/EnhanceIO — pull request #29 by bhansaliakhil (2013-03-21 07:45:15+00:00)
Title: Fix for "Partitioned cache device causes "attempt to access beyond end of device" and kernel panic" for EnhanceIO.

There is a logical error in EIO_ROUND_SECTOR macro calculation.
The mask value used to align sector number to 8 sector boundary, is of 32 bit.

Any value for "sector" greater that 32 bit is getting truncated to smaller value
causing wrong calculation in eio_new_job for "job_io_regions.cache.sector".

This lead to the following error. "attempt to access beyond size of device."
Fix is to convert this 32 bit mask to 64 bit mask.

I have tested the fix by running mkfs.ext4 and doing read/writes beyond 2TB sector
on cache.

Signed off by abhansali@stec-inc.com