ide-cd: fix DMA alignment regression
commit9bd27cba1aeacb6b12d05f4e5ed6361072f08fe0
authorBorislav Petkov <petkovbb@gmail.com>
Sun, 2 Nov 2008 20:40:07 +0000 (2 21:40 +0100)
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Sun, 2 Nov 2008 20:40:07 +0000 (2 21:40 +0100)
tree33917b6981e58ad553a86c44c91f07b1ecb13847
parent721d5dfe7e516954c501d5e9d0dfab379cf4241a
ide-cd: fix DMA alignment regression

e5318b531b008c79d2a0c0df06a7b8628da38e2f ("ide: use the dma safe check for
REQ_TYPE_ATA_PC") introduced a regression which caused some ATAPI drives to
turn off DMA for REQ_TYPE_BLOCK_PC commands while burning and thus degrading
performance and ultimately causing an excessive amount of underruns.

The issue is documented also in:
http://bugzilla.kernel.org/show_bug.cgi?id=11742.

Signed-off-by: Borislav Petkov <petkovbb@gmail.com>
Cc: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Tested-by: Valerio Passini <valerio.passini@unicam.it>
[bart: fixup patch description per comments from Sergei Shtylyov]
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
drivers/ide/ide-cd.c