aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/ide.h
diff options
context:
space:
mode:
authorBorislav Petkov <petkovbb@googlemail.com>2009-04-18 18:00:42 -0400
committerJens Axboe <jens.axboe@oracle.com>2009-04-28 01:37:30 -0400
commit068753203e6cd085664a62e0fc0636e19b148a12 (patch)
treed3eec62f2ecd5524c89bb7c8d4f482e93a4cc196 /include/linux/ide.h
parentc457ce874a0f3dfa3d5e9f2309789f6f34e24325 (diff)
ide-atapi: convert ide-{floppy,tape} to using preallocated sense buffer
Since we're issuing REQ_TYPE_SENSE now we need to allow those types of rqs in the ->do_request callbacks. As a future improvement, sense_len assignment might be unified across all ATAPI devices. Borislav to check with specs and test. As a result, get rid of ide_queue_pc_head() and drive->request_sense_rq. tj: * Init request sense ide_atapi_pc from sense request. In the longer timer, it would probably better to fold ide_create_request_sense_cmd() into its only current user - ide_floppy_get_format_progress(). * ide_retry_pc() no longer takes @disk. CC: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> CC: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> Signed-off-by: Borislav Petkov <petkovbb@gmail.com> Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'include/linux/ide.h')
-rw-r--r--include/linux/ide.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/linux/ide.h b/include/linux/ide.h
index a69ccac56411..9e67ccac3c1f 100644
--- a/include/linux/ide.h
+++ b/include/linux/ide.h
@@ -604,7 +604,6 @@ struct ide_drive_s {
604 unsigned long atapi_flags; 604 unsigned long atapi_flags;
605 605
606 struct ide_atapi_pc request_sense_pc; 606 struct ide_atapi_pc request_sense_pc;
607 struct request request_sense_rq;
608 607
609 /* current sense rq and buffer */ 608 /* current sense rq and buffer */
610 bool sense_rq_armed; 609 bool sense_rq_armed;
@@ -1181,7 +1180,7 @@ int ide_do_test_unit_ready(ide_drive_t *, struct gendisk *);
1181int ide_do_start_stop(ide_drive_t *, struct gendisk *, int); 1180int ide_do_start_stop(ide_drive_t *, struct gendisk *, int);
1182int ide_set_media_lock(ide_drive_t *, struct gendisk *, int); 1181int ide_set_media_lock(ide_drive_t *, struct gendisk *, int);
1183void ide_create_request_sense_cmd(ide_drive_t *, struct ide_atapi_pc *); 1182void ide_create_request_sense_cmd(ide_drive_t *, struct ide_atapi_pc *);
1184void ide_retry_pc(ide_drive_t *, struct gendisk *); 1183void ide_retry_pc(ide_drive_t *drive);
1185 1184
1186void ide_prep_sense(ide_drive_t *drive, struct request *rq); 1185void ide_prep_sense(ide_drive_t *drive, struct request *rq);
1187void ide_queue_sense_rq(ide_drive_t *drive, void *special); 1186void ide_queue_sense_rq(ide_drive_t *drive, void *special);