]> git.baikalelectronics.ru Git - kernel.git/commit
[SCSI] scsi_debug: Update thin provisioning support
authorMartin K. Petersen <martin.petersen@oracle.com>
Thu, 19 Aug 2010 15:49:00 +0000 (11:49 -0400)
committerJames Bottomley <James.Bottomley@suse.de>
Thu, 9 Sep 2010 20:34:40 +0000 (15:34 -0500)
commitd7ad3673b621633c8d2843839d7e21c8f690816d
tree3b0e9dee2dcc17a63367e04bd965e9262a288777
parent181c6cba7a1cf59bf87158c6cc2ce52b76576a2a
[SCSI] scsi_debug: Update thin provisioning support

The previous thin provisioning support was not very user friendly
because it depended on all the relevant options being set on the command
line.

Implement support for the Thin Provisioning VPD page from SBC3 r24 and
add module options for TPU (UNMAP) and TPWS (WRITE SAME (16) with UNMAP
bit).  This allows us to have sane default and to enable thin
provisioning with a simple tpu=1 or tpws=1 on the command line depending
on whether we want UNMAP or WRITE SAME behavior.

Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Acked-by: Douglas Gilbert <dgilbert@interlog.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/scsi_debug.c