kernel-hacking-2024-linux-s.../drivers
Alasdair G Kergon 76df1c651b [PATCH] device-mapper snapshot: fix invalidation
When a snapshot becomes invalid, s->valid is set to 0.  In this state, a
snapshot can no longer be accessed.

When s->lock is acquired, before doing anything else, s->valid must be checked
to ensure the snapshot remains valid.

This patch eliminates some races (that may cause panics) by adding some
missing checks.  At the same time, some unnecessary levels of indentation are
removed and snapshot invalidation is moved into a single function that always
generates a device-mapper event.

Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-03-27 08:44:58 -08:00
..
acorn
acpi [PATCH] more s/fucn/func/ typo fixes 2006-03-26 08:57:09 -08:00
amba
atm Merge master.kernel.org:/pub/scm/linux/kernel/git/sam/kbuild 2006-03-25 08:48:48 -08:00
base [PATCH] Notifier chain update: API changes 2006-03-27 08:44:50 -08:00
block [PATCH] mempool: use mempool_create_slab_pool() 2006-03-26 08:57:00 -08:00
bluetooth
cdrom [PATCH] Remove MODULE_PARM 2006-03-25 08:22:52 -08:00
char [PATCH] RTC subsystem: ARM cleanup 2006-03-27 08:44:50 -08:00
connector
cpufreq [PATCH] Notifier chain update: API changes 2006-03-27 08:44:50 -08:00
crypto
dio [PATCH] hp300: fix driver_register() return handling, remove dio_module_init() 2006-03-25 08:22:53 -08:00
edac [PATCH] EDAC: use EXPORT_SYMBOL_GPL 2006-03-26 08:57:08 -08:00
eisa [PATCH] EISA: Ignore generated file drivers/eisa/devlist.h 2006-03-25 08:23:01 -08:00
fc4
firmware [PATCH] Notifier chain update: API changes 2006-03-27 08:44:50 -08:00
hwmon [PATCH] s/;;/;/g 2006-03-24 07:33:24 -08:00
i2c [PATCH] RTC subsystem: I2C cleanup 2006-03-27 08:44:51 -08:00
ide [PATCH] ide: fix section mismatch warning 2006-03-25 08:22:53 -08:00
ieee1394 [PATCH] bitops: hweight() related cleanup 2006-03-26 08:57:15 -08:00
infiniband IPoIB: P_Key change event handling 2006-03-24 15:47:30 -08:00
input Merge git://git.kernel.org/pub/scm/linux/kernel/git/bunk/trivial 2006-03-26 09:41:18 -08:00
isdn Merge git://git.kernel.org/pub/scm/linux/kernel/git/bunk/trivial 2006-03-26 09:41:18 -08:00
macintosh [PATCH] Notifier chain update: API changes 2006-03-27 08:44:50 -08:00
mca
md [PATCH] device-mapper snapshot: fix invalidation 2006-03-27 08:44:58 -08:00
media Merge master.kernel.org:/pub/scm/linux/kernel/git/mchehab/v4l-dvb 2006-03-25 08:37:36 -08:00
message [PATCH] mempool: use mempool_create_slab_pool() 2006-03-26 08:57:00 -08:00
mfd [PATCH] show MCP menu only on ARCH_SA1100 2006-03-24 07:33:28 -08:00
misc [PATCH] Notifier chain update: API changes 2006-03-27 08:44:50 -08:00
mmc [PATCH] Remove MODULE_PARM 2006-03-25 08:22:52 -08:00
mtd Kconfig help: MTD_JEDECPROBE already supports Intel 2006-03-26 19:15:03 +02:00
net [PATCH] pnp: IRDA: adjust pnp_register_driver signature 2006-03-27 08:44:53 -08:00
nubus
oprofile
parisc [PATCH] Notifier chain update: API changes 2006-03-27 08:44:50 -08:00
parport [PATCH] pnp: parport: adjust pnp_register_driver signature 2006-03-27 08:44:52 -08:00
pci [PATCH] sem2mutex: misc static one-file mutexes 2006-03-26 08:56:55 -08:00
pcmcia
pnp [PATCH] pnp: PNP: adjust pnp_register_driver signature 2006-03-27 08:44:53 -08:00
rapidio
rtc [PATCH] RTC subsystem: M48T86 driver 2006-03-27 08:44:52 -08:00
s390 Merge git://git.kernel.org/pub/scm/linux/kernel/git/bunk/trivial 2006-03-26 09:41:18 -08:00
sbus
scsi [PATCH] Notifier chain update: API changes 2006-03-27 08:44:50 -08:00
serial Merge master.kernel.org:/home/rmk/linux-2.6-serial 2006-03-25 20:31:32 -08:00
sh
sn
spi
tc
telephony [PATCH] sem2mutex: misc static one-file mutexes 2006-03-26 08:56:55 -08:00
usb [PATCH] Notifier chain update: API changes 2006-03-27 08:44:50 -08:00
video [PATCH] video/sis/init301.c:SiS_ChrontelDoSomething2(): remove dead code 2006-03-27 08:44:58 -08:00
w1 fix typos "wich" -> "which" 2006-03-24 18:23:14 +01:00
zorro [PATCH] amiga: fix driver_register() return handling, remove zorro_module_init() 2006-03-25 08:22:53 -08:00
Kconfig [PATCH] RTC Subsystem: library functions 2006-03-27 08:44:50 -08:00
Makefile [PATCH] RTC Subsystem: library functions 2006-03-27 08:44:50 -08:00