diff options
author | Borislav Petkov <petkovbb@googlemail.com> | 2009-04-19 07:00:42 +0900 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2009-04-19 07:00:42 +0900 |
commit | 746d5e43274e9ea6cbd58818afc9239d41fb4e1e (patch) | |
tree | ccd01a9ff82888f274a301b41bd7565eec2909c4 /drivers/ide/ide-taskfile.c | |
parent | a1df5169f9bf08f6067029bfb840a05e282b1b97 (diff) | |
download | blackbird-op-linux-746d5e43274e9ea6cbd58818afc9239d41fb4e1e.tar.gz blackbird-op-linux-746d5e43274e9ea6cbd58818afc9239d41fb4e1e.zip |
ide-cd: convert to using generic sense request
Preallocate a sense request in the ->do_request method and reinitialize
it only on demand, in case it's been consumed in the IRQ handler path.
The reason for this is that we don't want to be mapping rq to bio in
the IRQ path and introduce all kinds of unnecessary hacks to the block
layer.
tj: * Both user and kernel PC requests expect sense data to be stored
in separate storage other than drive->sense_data. Copy sense
data to rq->sense on completion if rq->sense is not NULL. This
fixes bogus sense data on PC requests.
As a result, remove cdrom_queue_request_sense.
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 'drivers/ide/ide-taskfile.c')
0 files changed, 0 insertions, 0 deletions