diff options
| author | Borislav Petkov <[email protected]> | 2009-04-19 07:00:42 +0900 |
|---|---|---|
| committer | Tejun Heo <[email protected]> | 2009-04-19 07:00:42 +0900 |
| commit | a1df5169f9bf08f6067029bfb840a05e282b1b97 (patch) | |
| tree | f0ec5f74cc80f15d9d5720aa68997aa307f10dc1 /tools/perf/scripts/python | |
| parent | cbfd082abfcbed8c57a12636f36e9bead8d6cfc6 (diff) | |
ide: add helpers for preparing sense requests
This is in preparation of removing the queueing of a sense request out
of the IRQ handler path.
Use struct request_sense as a general sense buffer for all ATAPI
devices ide-{floppy,tape,cd}.
tj: * blk_get_request(__GFP_WAIT) can't be called from do_request() as
it can cause deadlock. Converted to use inline struct request
and blk_rq_init().
* Added xfer / cdb len selection depending on device type.
* All sense prep logics folded into ide_prep_sense() which never
fails.
* hwif->rq clearing and sense_rq used handling moved into
ide_queue_sense_rq().
* blk_rq_map_kern() conversion is moved to later patch.
CC: Bartlomiej Zolnierkiewicz <[email protected]>
CC: FUJITA Tomonori <[email protected]>
Signed-off-by: Borislav Petkov <[email protected]>
Signed-off-by: Tejun Heo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions