Martin Schwidefsky
abf09bed3c
s390/mm: implement software dirty bits
...
The s390 architecture is unique in respect to dirty page detection,
it uses the change bit in the per-page storage key to track page
modifications. All other architectures track dirty bits by means
of page table entries. This property of s390 has caused numerous
problems in the past, e.g. see git commit ef5d437f71
"mm: fix XFS oops due to dirty pages without buffers on s390".
To avoid future issues in regard to per-page dirty bits convert
s390 to a fault based software dirty bit detection mechanism. All
user page table entries which are marked as clean will be hardware
read-only, even if the pte is supposed to be writable. A write by
the user process will trigger a protection fault which will cause
the user pte to be marked as dirty and the hardware read-only bit
is removed.
With this change the dirty bit in the storage key is irrelevant
for Linux as a host, but the storage key is still required for
KVM guests. The effect is that page_test_and_clear_dirty and the
related code can be removed. The referenced bit in the storage
key is still used by the page_test_and_clear_young primitive to
provide page age information.
For page cache pages of mappings with mapping_cap_account_dirty
there will not be any change in behavior as the dirty bit tracking
already uses read-only ptes to control the amount of dirty pages.
Only for swap cache pages and pages of mappings without
mapping_cap_account_dirty there can be additional protection faults.
To avoid an excessive number of additional faults the mk_pte
primitive checks for PageDirty if the pgprot value allows for writes
and pre-dirties the pte. That avoids all additional faults for
tmpfs and shmem pages until these pages are added to the swap cache.
Signed-off-by: Martin Schwidefsky <[email protected] >
2013-02-14 15:55:23 +01:00
..
accessibility
acpi
Merge branch 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
2013-01-31 17:08:43 +11:00
amba
Drivers: amba: remove __dev* attributes.
2013-01-03 15:57:02 -08:00
ata
ata: disable ATA for s390
2013-02-14 15:55:13 +01:00
atm
atm/iphase: rename fregt_t -> ffreg_t
2013-02-08 14:22:05 -05:00
auxdisplay
Drivers: misc: remove __dev* attributes.
2013-01-03 15:57:16 -08:00
base
Merge remote-tracking branch 'regmap/fix/debugfs' into tmp
2013-01-24 19:04:16 +08:00
bcma
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless into for-davem
2013-02-06 13:55:44 -05:00
block
Merge branch 'for-linus' of git://git.kernel.dk/linux-block
2013-02-07 08:38:33 +11:00
bluetooth
Bluetooth device 04ca:3008 should use ath3k
2013-01-10 02:51:03 -02:00
bus
Drivers: misc: remove __dev* attributes.
2013-01-03 15:57:16 -08:00
cdrom
Drivers: misc: remove __dev* attributes.
2013-01-03 15:57:16 -08:00
char
virtio_console: Don't access uninitialized data.
2013-02-07 11:37:37 +10:30
clk
mvebu fixes for v3.8-rc5
2013-01-23 20:30:52 -08:00
clocksource
Drivers: clocksource: remove __dev* attributes.
2013-01-03 15:57:15 -08:00
connector
Drivers: misc: remove __dev* attributes.
2013-01-03 15:57:16 -08:00
cpufreq
cpufreq: Add module aliases for acpi-cpufreq
2013-01-22 22:33:46 +01:00
cpuidle
cpuidle: remove the power_specified field in the driver
2013-01-15 14:18:04 +01:00
crypto
Drivers: crypto: remove __dev* attributes.
2013-01-03 15:57:02 -08:00
dca
devfreq
PM / devfreq: exynos4_bus: honor RCU lock usage
2013-01-22 13:28:40 +01:00
dio
dma
Merge branch 'fixes' of git://git.infradead.org/users/vkoul/slave-dma
2013-01-24 10:17:49 -08:00
edac
EDAC: Fix kcalloc argument order
2013-01-30 11:38:25 +01:00
eisa
extcon
firewire
firmware
Merge branch 'x86-efi-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
2013-01-31 17:10:36 +11:00
gpio
gpio: mvebu: Don't free chip label memory
2013-01-17 12:27:08 +01:00
gpu
Merge branch 'stable' of git://git.kernel.org/pub/scm/linux/kernel/git/cmetcalf/linux-tile into akpm
2013-02-12 15:13:42 -08:00
hid
Merge branch 'for-3.8/upstream-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/hid
2013-02-01 08:44:59 +11:00
hsi
Drivers: misc: remove __dev* attributes.
2013-01-03 15:57:16 -08:00
hv
Drivers: hv: balloon: Fix a memory leak
2013-01-17 11:58:00 -08:00
hwmon
hwmon: (vexpress) Fix build error seen if CONFIG_OF_DEVICE is not set
2013-01-09 21:47:22 -08:00
hwspinlock
i2c
i2c-designware: add missing MODULE_LICENSE
2013-01-22 16:43:34 +01:00
ide
Drivers: ide: remove __dev* attributes.
2013-01-03 15:57:03 -08:00
idle
intel_idle: Don't register CPU notifier if we are not running.
2013-01-18 13:43:43 +01:00
iio
Staging fixes for 3.8-rc3
2013-01-14 09:08:38 -08:00
infiniband
Merge branches 'ipoib', 'mlx4' and 'qib' into for-next
2013-02-05 09:45:25 -08:00
input
drivers/input/joystick/analog.c: enable precise timer
2013-02-04 12:53:12 -05:00
iommu
Merge branch 'drm-fixes' of git://people.freedesktop.org/~airlied/linux
2013-01-30 12:02:26 +11:00
ipack
irqchip
isdn
isdn/gigaset: fix zero size border case in debug dump
2013-01-21 17:36:02 -05:00
leds
leds: leds-gpio: set devm_gpio_request_one() flags param correctly
2013-01-02 17:58:41 -08:00
lguest
macintosh
Drivers: macintosh: remove __dev* attributes.
2013-01-03 15:57:14 -08:00
md
A fix for stacked dm thin devices and a fix for the new dm WRITE SAME
2013-02-01 12:04:22 +11:00
media
drivers/media: add missing GENERIC_HARDIRQS dependency
2013-02-14 15:55:21 +01:00
memory
Drivers: memory: remove __dev* attributes.
2013-01-03 15:57:14 -08:00
memstick
message
Drivers: message: remove __dev* attributes.
2013-01-03 15:57:14 -08:00
mfd
This is the first pull request for MFD fixes for 3.8
2013-01-28 11:51:57 -08:00
misc
Revert "drivers/misc/ti-st: remove gpio handling"
2013-01-22 17:22:47 -08:00
mmc
This is the first pull request for MFD fixes for 3.8
2013-01-28 11:51:57 -08:00
mtd
A small set of simple regression and build fixes for 3.8:
2013-02-05 07:54:11 +11:00
net
drivers/net,AT91RM9200: add missing GENERIC_HARDIRQS dependency
2013-02-14 15:55:20 +01:00
nfc
Drivers: misc: remove __dev* attributes.
2013-01-03 15:57:16 -08:00
nubus
of
oprofile
parisc
Drivers: misc: remove __dev* attributes.
2013-01-03 15:57:16 -08:00
parport
parport: disable PC-style parallel port support for s390
2013-02-14 15:55:14 +01:00
pci
s390/pci: fix hotplug module init
2013-02-14 15:55:17 +01:00
pcmcia
pinctrl
pinctrl: sirf: replace of_gpio_simple_xlate by sirf specific of_xlate
2013-02-05 15:27:39 +01:00
platform
samsung-laptop: Disable on EFI hardware
2013-01-30 11:52:11 -08:00
pnp
PNP: Handle IORESOURCE_BITS in resource allocation
2013-01-03 13:10:53 +01:00
power
ARM: arm-soc fixes for 3.8-rc
2013-01-08 18:53:56 -08:00
pps
Drivers: misc: remove __dev* attributes.
2013-01-03 15:57:16 -08:00
ps3
Drivers: misc: remove __dev* attributes.
2013-01-03 15:57:16 -08:00
ptp
pwm
rapidio
regulator
Merge remote-tracking branch 'regulator/fix/tps65910' into tmp
2013-02-06 11:28:53 +00:00
remoteproc
Drivers: misc: remove __dev* attributes.
2013-01-03 15:57:16 -08:00
rpmsg
Drivers: misc: remove __dev* attributes.
2013-01-03 15:57:16 -08:00
rtc
drivers/rtc/rtc-pl031.c: restore ST variant functionality
2013-02-12 14:34:00 -08:00
s390
s390/mm: implement software dirty bits
2013-02-14 15:55:23 +01:00
sbus
Drivers: sbus: remove __dev* attributes.
2013-01-03 15:57:03 -08:00
scsi
efi: Make 'efi_enabled' a function to query EFI facilities
2013-01-30 11:51:59 -08:00
sfi
sh
sh: clkfwk: bugfix: sh_clk_div_enable() care sh_clk_div_set_rate() if div6
2013-01-11 20:57:58 +09:00
sn
Drivers: misc: remove __dev* attributes.
2013-01-03 15:57:16 -08:00
spi
ssb
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless into for-davem
2013-02-06 13:55:44 -05:00
staging
Staging bugfixes for 3.8-rc4
2013-01-18 14:05:25 -08:00
target
target: Fix divide by zero bug in fabric_max_sectors for unconfigured devices
2013-01-31 15:22:53 -08:00
tc
thermal
Drivers: thermal: remove __dev* attributes.
2013-01-03 15:57:02 -08:00
tty
s390/3270: asynchronous size sensing
2013-02-14 15:55:03 +01:00
uio
uio: remove !S390 dependency from Kconfig
2013-02-14 15:55:18 +01:00
usb
USB: storage: optimize to match the Huawei USB storage devices and support new switch command
2013-02-04 10:41:40 -08:00
uwb
vfio
vfio-pci: Fix buffer overfill
2013-01-15 10:45:26 -07:00
vhost
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
2013-02-09 07:55:24 +11:00
video
This is yet another critical imxfb fixes held off by absence of FB
2013-01-23 20:35:02 -08:00
virt
virtio
Drivers: virtio: remove __dev* attributes.
2013-01-03 15:57:01 -08:00
vlynq
Drivers: vlynq: remove __dev* attributes.
2013-01-03 15:57:01 -08:00
vme
w1
Drivers: w1: remove last __devexit_p() instance
2013-01-03 15:57:01 -08:00
watchdog
watchdog: twl4030_wdt: add DT support
2013-01-02 12:07:05 +01:00
xen
Two fixes:
2013-02-08 11:55:27 +11:00
zorro
Drivers: zorro: remove CONFIG_HOTPLUG usage
2013-01-03 15:57:01 -08:00
Kconfig
Makefile