Borislav Petkov a1df5169f9 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 <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>
2009-04-19 07:00:42 +09:00
..
2009-04-17 10:50:27 -07:00
2009-04-13 15:04:34 -07:00
2009-04-13 15:04:29 -07:00
2009-04-16 08:51:52 -07:00
2009-04-17 10:50:27 -07:00
2009-04-17 10:50:27 -07:00
2009-04-05 00:32:25 +02:00
2009-04-13 15:04:33 -07:00
2009-04-14 19:46:19 -07:00
2009-04-17 11:06:31 -07:00
2009-04-13 15:04:32 -07:00
2009-04-05 00:32:22 +02:00
2009-04-08 14:25:51 -07:00