mirror of
https://github.com/SCST-project/scst.git
synced 2026-08-27 19:37:17 +00:00
scst_lib: Improve WRITE SAME performance
Some storage devices have a block size of 512 bytes and a minimum I/O size and/or optimal I/O size of 4096 bytes. Improve WRITE SAME performance for such devices by increasing the I/O granularity from 512 bytes to 4096 bytes. Based on a patch written by Vishal Tripathi <vishal.tripathi@calsoftinc.com> and Sushil Sharma <sushil.sharma@calsoftinc.com>. Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com> + with some minor changes git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6189 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -4080,6 +4080,10 @@ static inline void *sg_virt(struct scatterlist *sg)
|
||||
return page_address(sg_page(sg)) + sg->offset;
|
||||
}
|
||||
|
||||
static inline void sg_mark_end(struct scatterlist *sg)
|
||||
{
|
||||
}
|
||||
|
||||
#ifndef __BACKPORT_LINUX_SCATTERLIST_H_TO_2_6_23__
|
||||
|
||||
static inline void sg_init_table(struct scatterlist *sgl, unsigned int nents)
|
||||
|
||||
Reference in New Issue
Block a user