android_kernel_xiaomi_sm8350/drivers
Kiyoshi Ueda 5e36bb6ee8 blk_end_request: changing ide normal caller (take 4)
This patch converts "normal" parts of ide to use blk_end_request
interfaces.  Related 'uptodate' arguments are converted to 'error'.

The conversion of 'uptodate' to 'error' is done only for the internal
function, __ide_end_request().
ide_end_request() was not changed since it's exported and used
by many ide drivers.

With this patch, blkdev_dequeue_request() in __ide_end_request() is
moved to blk_end_request, since blk_end_request takes care of
dequeueing request like below:

	if (!list_empty(&rq->queuelist))
		blkdev_dequeue_request(rq);

In the case of ide,
  o 'dequeue' variable of __ide_end_request() is 1 only when the request
    is still linked to the queue (i.e. rq->queuelist is not empty)
  o 'dequeue' variable of __ide_end_request() is 0 only when the request
    has already been removed from the queue (i.e. rq->queuelist is empty)
So blk_end_request can handle it correctly although ide always run
thought the code above.

Cc: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: Kiyoshi Ueda <k-ueda@ct.jp.nec.com>
Signed-off-by: Jun'ichi Nomura <j-nomura@ce.jp.nec.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
2008-01-28 10:37:02 +01:00
..
acorn/char
acpi
amba
ata Merge git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi-misc-2.6 2008-01-25 17:19:08 -08:00
atm
auxdisplay
base Merge git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi-misc-2.6 2008-01-25 17:19:08 -08:00
block blk_end_request: changing cpqarray (take 4) 2008-01-28 10:37:00 +01:00
bluetooth
cdrom blk_end_request: changing viocd (take 4) 2008-01-28 10:36:48 +01:00
char
clocksource
connector
cpufreq
cpuidle
crypto [S390] crypto: move s390 Kconfig options. 2008-01-26 14:11:17 +01:00
dca
dio
dma
edac
eisa
firewire
firmware
hid
hwmon
i2c i2c-bfin-twi: Register adapter with a specific bus number 2008-01-27 18:14:52 +01:00
ide blk_end_request: changing ide normal caller (take 4) 2008-01-28 10:37:02 +01:00
ieee1394 Merge git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi-misc-2.6 2008-01-25 17:19:08 -08:00
infiniband Merge git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi-misc-2.6 2008-01-25 17:19:08 -08:00
input
isdn
kvm
leds
lguest
macintosh i2c: Kill rogue driver IDs 2008-01-27 18:14:47 +01:00
mca
md
media i2c: Drivers stop using the redundant client list 2008-01-27 18:14:51 +01:00
message blk_end_request: changing i2o_block (take 4) 2008-01-28 10:36:50 +01:00
mfd
misc
mmc blk_end_request: changing mmc (take 4) 2008-01-28 10:36:52 +01:00
mtd
net mlx4_core: Fix max_eqs masking in QUERY_DEV_CAP 2008-01-25 14:15:29 -08:00
nubus
of
oprofile
parisc
parport
pci
pcmcia
pnp
power
ps3
rapidio
rtc i2c: normal_i2c can be made const (rtc drivers) 2008-01-27 18:14:47 +01:00
s390 blk_end_request: changing s390 (take 4) 2008-01-28 10:36:54 +01:00
sbus
scsi blk_end_request: changing ide-scsi (take 4) 2008-01-28 10:36:56 +01:00
serial
sh
sn
spi
ssb
tc
telephony
uio
usb i2c/tps65010: move header to <linux/i2c/...> 2008-01-27 18:14:49 +01:00
video Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/cooloney/blackfin-2.6 2008-01-28 08:15:24 +11:00
virtio
w1 i2c: normal_i2c can be made const (remaining drivers) 2008-01-27 18:14:47 +01:00
watchdog
xen
zorro
Kconfig
Makefile