Maarten Lankhorst
e7ab20197b
drm/ttm: cope with reserved buffers on lru list in ttm_mem_evict_first, v2
...
Replace the goto loop with a simple for each loop, and only run the
delayed destroy cleanup if we can reserve the buffer first.
No race occurs, since lru lock is never dropped any more. An empty list
and a list full of unreservable buffers both cause -EBUSY to be returned,
which is identical to the previous situation, because previously buffers
on the lru list were always guaranteed to be reservable.
This should work since currently ttm guarantees items on the lru are
always reservable, and reserving items blockingly with some bo held
are enough to cause you to run into a deadlock.
Currently this is not a concern since removal off the lru list and
reservations are always done with atomically, but when this guarantee
no longer holds, we have to handle this situation or end up with
possible deadlocks.
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@canonical.com>
Reviewed-by: Thomas Hellstrom <thellstrom@vmware.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-12-10 20:21:22 +10:00
..
accessibility
acpi
amba
ata
SCSI fixes on 20121122
2012-11-22 09:14:54 -10:00
atm
auxdisplay
base
PM / QoS: fix wrong error-checking condition
2012-11-23 20:55:06 +01:00
bcma
block
mtip32xx: Fix padding issue
2012-11-23 14:32:55 +01:00
bluetooth
Bluetooth: ath3k: Add support for VAIO VPCEH [0489:e027]
2012-11-09 16:45:37 +01:00
bus
drivers: bus: ocp2scp: add pdata support
2012-11-07 09:35:53 -08:00
cdrom
char
Merge branch 'for-airlied' of git://people.freedesktop.org/~danvet/drm-intel into drm-next
2012-11-20 09:22:35 +10:00
clk
clk: ux500: Register slimbus clock lookups for u8500
2012-11-12 10:20:23 -08:00
clocksource
connector
cpufreq
cpuidle
crypto
dca
devfreq
dio
dma
edac
eisa
extcon
firewire
[SCSI] sd: Implement support for WRITE SAME
2012-11-13 22:45:42 -08:00
firmware
gpio
gpio-mcp23s08: Build I2C support even when CONFIG_I2C=m
2012-11-17 22:22:24 +01:00
gpu
drm/ttm: cope with reserved buffers on lru list in ttm_mem_evict_first, v2
2012-12-10 20:21:22 +10:00
hid
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/hid
2012-11-16 07:58:20 -08:00
hsi
hv
hwmon
hwspinlock
i2c
Merge branch 'i2c-embedded/for-current' of git://git.pengutronix.de/git/wsa/linux
2012-11-23 11:59:26 -10:00
ide
idle
iio
infiniband
input
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input
2012-11-22 21:45:34 -10:00
iommu
intel-iommu: Fix lookup in add device
2012-11-17 13:27:15 +01:00
irqchip
irqchip: irq-bcm2835: Add terminating entry for of_device_id table
2012-11-06 07:37:10 -08:00
isdn
isdn: Make CONFIG_ISDN depend on CONFIG_NETDEVICES
2012-11-07 18:59:26 -05:00
leds
ledtrig-cpu: kill useless mutex to fix sleep in atomic context
2012-11-11 12:09:43 -08:00
lguest
macintosh
md
Several bug fixes for md in 3.7
2012-11-23 12:11:13 -10:00
media
memory
memstick
message
mfd
misc
mmc
mmc: sdhci-s3c: fix the card detection in runtime-pm
2012-11-07 15:40:52 -05:00
mtd
Merge branch 'for-3.7' of git://git.infradead.org/users/dedekind/l2-mtd
2012-11-21 10:38:13 +00:00
net
bnx2x: remove redundant warning log
2012-11-23 14:17:36 -05:00
nfc
NFC: Fix pn533 target mode memory leak
2012-11-20 00:09:26 +01:00
nubus
of
oprofile
parisc
parport
pci
pcmcia
pinctrl
pinctrl/samsung: don't allow enabling pinctrl-samsung standalone
2012-11-15 11:58:24 +01:00
platform
pnp
power
pps
ps3
ptp
pwm
rapidio
rapidio: fix kernel-doc warnings
2012-11-16 14:33:04 -08:00
regulator
Merge remote-tracking branches 'regulator/fix/gpio', 'regulator/fix/put' and 'regulator/fix/supp-volt' into tmp
2012-11-15 11:16:02 +09:00
remoteproc
rpmsg
rtc
s390
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
2012-11-16 14:10:15 -08:00
sbus
scsi
[SCSI] sd: Implement support for WRITE SAME
2012-11-13 22:45:42 -08:00
sfi
sh
sn
spi
ssb
staging
Revert "Staging: Android alarm: IOCTL command encoding fix"
2012-11-13 13:04:43 -08:00
target
tc
thermal
tty
tty: serial: max310x: Add terminating entry for spi_device_id table
2012-11-14 14:49:42 -08:00
uio
usb
SCSI fixes on 20121122
2012-11-22 09:14:54 -10:00
uwb
vfio
vhost
video
omapdss fixes for 3.7-rc
2012-11-23 12:01:02 -10:00
virt
virtio
virtio: Don't access index after unregister.
2012-11-09 14:54:24 +10:30
vlynq
vme
w1
watchdog
xen
Bug-fix:
2012-11-20 18:52:01 -10:00
zorro
Kconfig
Makefile