sg driver for large page_size, lk 2.6.18
PATCH 1/1 sg driver for large page_size, lk 2.6.18
This sg driver patch addresses the problem with larger page sizes reported by Brian King in this post:
http://marc.theaimsgroup.com/?l=linux-scsi&m=115867718623631&w=2
Some other related matters are also addressed. Some of these prevent oopses when the SG_SCATTER_SZ or scatter_elem_sz are set to inappropriate values.
The scatter_elem_sz has been tested up to 4 MB which should make the largest data transfer with one SCSI command, 32 MB less one block, achievable with a relatively small number of elements in the scatter gather list.
For consideration in lk 2.6.19 . The patch is against lk 2.6.18 .
ChangeLog:
- add scatter_elem_sz boot time parameter and sysfs module parameter that is initialized to SG_SCATTER_SZ
- the driver will then adjust scatter_elem_sz to be the max(given(scatter_elem_sz), PAGE_SIZE)
It will also round it up, if necessary, to be a power of two
- clean up sg.h header, correct bad urls and some statements that are no longer valid
- make the def_reserved_size sysfs module attribute writable
Doug Gilbert
Quoted 3 lines · Douglas Gilbert
This sg driver patch addresses the problem with larger page sizes reported by Brian King in this post:
http://marc.theaimsgroup.com/?l=linux-scsi&m=115867718623631&w=2
This fixes the oops I was seeing on PPC64 with 64k pages enabled.
Brian
Quoted 26 lines
Some other related matters are also addressed. Some of these prevent oopses when the
SG_SCATTER_SZorscatter_elem_szare set to inappropriate values.The
scatter_elem_szhas been tested up to 4 MB which should make the largest data transfer with one SCSI command, 32 MB less one block, achievable with a relatively small number of elements in the scatter gather list.For consideration in lk 2.6.19 . The patch is against lk 2.6.18 .
ChangeLog:
- addscatter_elem_szboot time parameter and sysfs module parameter that is initialized toSG_SCATTER_SZ
- the driver will then adjustscatter_elem_szto be themax(given(scatter_elem_sz), PAGE_SIZE)
It will also round it up, if necessary, to be a power of two
- clean upsg.hheader, correct bad urls and some statements that are no longer valid
- make thedef_reserved_sizesysfs module attribute writableSigned-off-by Douglas Gilbert <[email protected]>Doug Gilbert
Signature · 3 lines
Brian King eServer Storage I/O IBM Linux Technology Center