aboutsummaryrefslogtreecommitdiff
path: root/drivers/scsi/mpt2sas/mpi/mpi2_raid.h
diff options
context:
space:
mode:
authorNicholas Bellinger <[email protected]>2013-02-19 17:30:34 -0800
committerNicholas Bellinger <[email protected]>2013-02-20 12:29:04 -0800
commit7b745c84a9f4ad62db4b67053fbceb5d706451af (patch)
tree2c8886e676130abfa4682531eb5c01d57feb6e47 /drivers/scsi/mpt2sas/mpi/mpi2_raid.h
parent6e5459353de4ac80924e94fafa8b3e31a086c5dd (diff)
target/file: Add WRITE_SAME w/ UNMAP=0 emulation support
This patch adds support for emulation of WRITE_SAME w/ UNMAP=0 within fd_execute_write_same() backend code. The emulation uses vfs_writev() to submit a locally populated buffer from the received WRITE_SAME scatterlist block for duplication, and by default enforces a limit of max_write_same_len=0x1000 (8192) sectors up to the limit of 1024 iovec entries for the single call to vfs_writev(). It also sets max_write_same_len to the operational default at setup -> fd_configure_device() time. Tested with 512, 1k, 2k, and 4k block_sizes. (asias: convert to vzalloc) Cc: Martin K. Petersen <[email protected]> Cc: Christoph Hellwig <[email protected]> Cc: Asias He <[email protected]> Signed-off-by: Nicholas Bellinger <[email protected]>
Diffstat (limited to 'drivers/scsi/mpt2sas/mpi/mpi2_raid.h')
0 files changed, 0 insertions, 0 deletions