[SCSI] sd: Permit merged discard requests
authorMartin K. Petersen <martin.petersen@oracle.com>
Tue, 18 Sep 2012 16:19:31 +0000 (12:19 -0400)
committerJames Bottomley <JBottomley@Parallels.com>
Wed, 14 Nov 2012 05:23:53 +0000 (21:23 -0800)
commit26e85fcd15f68b57d9ba645cd3591117a8ac0e05
tree5dcb12ddd18e8ced5707239cdb0da6feaf3c9c80
parent3c6bdaeab4fda6c9fdd5f3f5c610dea97bddf7d6
[SCSI] sd: Permit merged discard requests

Support requests with more than one bio payload for discards. The total
number of bytes to be discarded is stored in req->__data_len and used in
sd_done() to complete the I/O.

Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Reviewed-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/sd.c