aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2010-07-01 06:49:19 -0400
committerJens Axboe <jaxboe@fusionio.com>2010-08-07 12:23:51 -0400
commit802447c1c0513a0ea0e29d6bda23b19ac0686654 (patch)
tree9504fcb73862dc97534d0300f8adb87c0c65d002 /drivers/scsi
parentf1126e950d28ff875d96ed6a04a9ff96c7bfc357 (diff)
scsi: remove unused free discard page in sd_done
- sd_done isn't called for pc request so we never call the code. - we use sd_unprep to free discard page now. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
Diffstat (limited to 'drivers/scsi')
-rw-r--r--drivers/scsi/sd.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/drivers/scsi/sd.c b/drivers/scsi/sd.c
index 2d4e3a865f39..aa6b48ba78b1 100644
--- a/drivers/scsi/sd.c
+++ b/drivers/scsi/sd.c
@@ -1179,15 +1179,6 @@ static int sd_done(struct scsi_cmnd *SCpnt)
1179 int sense_valid = 0; 1179 int sense_valid = 0;
1180 int sense_deferred = 0; 1180 int sense_deferred = 0;
1181 1181
1182 /*
1183 * If this is a discard request that originated from the kernel
1184 * we need to free our payload here. Note that we need to check
1185 * the request flag as the normal payload rules apply for
1186 * pass-through UNMAP / WRITE SAME requests.
1187 */
1188 if (SCpnt->request->cmd_flags & REQ_DISCARD)
1189 __free_page(bio_page(SCpnt->request->bio));
1190
1191 if (result) { 1182 if (result) {
1192 sense_valid = scsi_command_normalize_sense(SCpnt, &sshdr); 1183 sense_valid = scsi_command_normalize_sense(SCpnt, &sshdr);
1193 if (sense_valid) 1184 if (sense_valid)