summaryrefslogtreecommitdiff
path: root/drivers/scsi/sd.c
diff options
context:
space:
mode:
authorMike Snitzer <snitzer@redhat.com>2016-05-05 15:21:14 -0400
committerMike Snitzer <snitzer@redhat.com>2016-05-05 15:21:14 -0400
commitef1d88ced108df7d652cf3f514b920e661826b71 (patch)
treefe18b0d5c61b0371b9573c58973e459b10ebeb21 /drivers/scsi/sd.c
parent04974df8049fc4240d22759a91e035082ccd18b4 (diff)
parent0ef5a50c1658d4d96a44f145bcb92ff3310c75b1 (diff)
Merge remote-tracking branch 'jens/for-4.7/core' into dm-4.7
Needed in order to update the DM thinp code to use the new async __blkdev_issue_discard() interface.
Diffstat (limited to 'drivers/scsi/sd.c')
-rw-r--r--drivers/scsi/sd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/sd.c b/drivers/scsi/sd.c
index f52b74cf8d1e..69b0a4a7a15f 100644
--- a/drivers/scsi/sd.c
+++ b/drivers/scsi/sd.c
@@ -779,7 +779,7 @@ static int sd_setup_discard_cmnd(struct scsi_cmnd *cmd)
* discarded on disk. This allows us to report completion on the full
* amount of blocks described by the request.
*/
- blk_add_request_payload(rq, page, len);
+ blk_add_request_payload(rq, page, 0, len);
ret = scsi_init_io(cmd);
rq->__data_len = nr_bytes;