alistair23-linux/drivers/block
Pete Zaitcev 688e9fb1bb [PATCH] ub: atomic add_disk
<zaitcev> I am taling about this: "if (disk->flags & GENHD_FL_UP) del_gendisk(disk);"
<zaitcev> If del_gendisk() undoes add_disk() like viro just said, why is it conditional?
<viro> huh?
<viro> add_disk() sets the damn flag
<zaitcev> So, I should not need to check ever
<viro> so the above is "if I've called add_disk(), call gendisk()"
<viro> which might be what you want, of course
<viro> but usually you know if you'd done add_disk() on that puppy anyway

In ub, nobody upstream should ever see half-constructed disks before
they were passed to add_disk. To that end, only add the struct lun to
the list on the path of no return. With that fix in place, we do
not need to test GENHD_FL_UP.

Signed-off-by: Pete Zaitcev <zaitcev@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2006-06-21 15:04:14 -07:00
..
aoe [NET]: Clean up skb_linearize 2006-06-17 21:30:16 -07:00
paride [PATCH] drivers/block/paride/pd.c: fix an off-by-one error 2006-03-28 09:16:03 -08:00
acsi.c
acsi_slm.c [PATCH] drivers/block/acsi_slm.c: size_t can't be < 0 2006-03-28 09:16:03 -08:00
amiflop.c [PATCH] Don't pass boot parameters to argv_init[] 2006-03-31 12:18:53 -08:00
ataflop.c [PATCH] Remove MODULE_PARM 2006-03-25 08:22:52 -08:00
cciss.c [PATCH] CCISS: add device symlink to the block cciss block devices in sysfs 2006-06-21 12:40:47 -07:00
cciss.h
cciss_cmd.h
cciss_scsi.c [SCSI] fix up request buffer reference in various scsi drivers 2006-06-06 11:07:25 -04:00
cciss_scsi.h
cpqarray.c BUG_ON() Conversion in drivers/block/ 2006-03-24 18:50:27 +01:00
cpqarray.h
cryptoloop.c
DAC960.c [SCSI] fix (unlikely) memory leak in DAC960 driver 2006-05-20 09:23:23 -05:00
DAC960.h
floppy.c [PATCH] powerpc: Use check_legacy_ioport() on ppc32 too. 2006-04-28 21:04:55 +10:00
ida_cmd.h
ida_ioctl.h
Kconfig [PATCH] let BLK_DEV_RAM_COUNT depend on BLK_DEV_RAM 2006-03-28 09:16:02 -08:00
loop.c [PATCH] loop: potential kernel hang waiting for kthread 2006-03-26 08:56:57 -08:00
Makefile [PATCH] block: floppy98 removal, really. 2006-03-24 07:33:26 -08:00
nbd.c [PATCH] drivers/block/nbd.c: don't defer compile error to runtime 2006-03-25 08:22:52 -08:00
pktcdvd.c [PATCH] mempool: use common mempool kmalloc allocator 2006-03-26 08:56:59 -08:00
ps2esdi.c [PATCH] Fix drivers/block/ps2esdi.c compile 2006-01-16 20:24:45 -08:00
rd.c [PATCH] set_page_dirty() return value fixes 2006-03-24 07:33:26 -08:00
smart1,2.h
swim3.c
swim_iop.c
sx8.c
ub.c [PATCH] ub: atomic add_disk 2006-06-21 15:04:14 -07:00
umem.c [PATCH] Replace 0xff.. with correct DMA_xBIT_MASK 2006-03-28 09:16:07 -08:00
viodasd.c
xd.c
xd.h
z2ram.c