linux/drivers/ide
FUJITA Tomonori bb23b431db remove blk_register_filter and blk_unregister_filter in gendisk
This patch remove blk_register_filter and blk_unregister_filter in
gendisk, and adds them to sd.c, sr.c. and ide-cd.c

The commit abf5439370 moved cmdfilter
from gendisk to request_queue. It turned out that in some subsystems
multiple gendisks share a single request_queue. So we get:

Using physmap partition information
Creating 3 MTD partitions on "physmap-flash":
0x00000000-0x01c00000 : "User FS"
0x01c00000-0x01c40000 : "booter"
kobject (8511c410): tried to init an initialized object, something is seriously wrong.
Call Trace:
[<8036644c>] dump_stack+0x8/0x34
[<8021f050>] kobject_init+0x50/0xcc
[<8021fa18>] kobject_init_and_add+0x24/0x58
[<8021d20c>] blk_register_filter+0x4c/0x64
[<8021c194>] add_disk+0x78/0xe0
[<8027d14c>] add_mtd_blktrans_dev+0x254/0x278
[<8027c8f0>] blktrans_notify_add+0x40/0x78
[<80279c00>] add_mtd_device+0xd0/0x150
[<8027b090>] add_mtd_partitions+0x568/0x5d8
[<80285458>] physmap_flash_probe+0x2ac/0x334
[<802644f8>] driver_probe_device+0x12c/0x244
[<8026465c>] __driver_attach+0x4c/0x84
[<80263c64>] bus_for_each_dev+0x58/0xac
[<802633ec>] bus_add_driver+0xc4/0x24c
[<802648e0>] driver_register+0xcc/0x184
[<80100460>] _stext+0x60/0x1bc

In the long term, we need to fix such subsystems but we need a quick
fix now. This patch add the command filter support to only sd and sr
though it might be useful for other SG_IO users (such as cciss).

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Reported-by: Manuel Lauss <mano@roarinelk.homelinux.net>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
2008-08-29 11:47:07 +02:00
..
arm [ARM] Move include/asm-arm/arch-* to arch/arm/*/include/mach 2008-08-07 09:55:48 +01:00
h8300 ide: add ide_host_add() helper 2008-07-23 19:55:57 +02:00
legacy ht6560b: remove old history 2008-07-24 22:53:35 +02:00
mips ide: add ide_host_add() helper 2008-07-23 19:55:57 +02:00
pci sgiioc4: fixup message on resource allocation failure 2008-08-18 21:40:04 +02:00
ppc ide/powermac: Fix use of uninitialized pointer on media-bay 2008-07-30 15:26:53 +10:00
ide-acpi.c ide: remove obsoleted "ide=" kernel parameters 2008-07-15 21:21:47 +02:00
ide-atapi.c ide: remove unused PC_FLAG_DRQ_INTERRUPT 2008-07-23 19:56:01 +02:00
ide-cd_ioctl.c ide: ide-cd_ioctl.c fix sparse integer as NULL pointer warnings 2008-07-23 19:56:02 +02:00
ide-cd_verbose.c block: replace sizeof(rq->cmd) with BLK_MAX_CDB 2008-04-29 14:48:55 +02:00
ide-cd.c remove blk_register_filter and blk_unregister_filter in gendisk 2008-08-29 11:47:07 +02:00
ide-cd.h ide-cd: convert to using the new atapi_flags 2008-07-23 19:56:02 +02:00
ide-disk.c ide: fix regression caused by ide_device_{get,put}() addition (take 2) 2008-08-05 18:16:59 +02:00
ide-dma.c ide: fix pre-EIDE SWDMA support on big-endian 2008-08-05 18:16:55 +02:00
ide-floppy.c ide: fix regression caused by ide_device_{get,put}() addition (take 2) 2008-08-05 18:16:59 +02:00
ide-generic.c ide-generic: remove ide_default_{io_base,irq}() inlines (take 3) 2008-07-24 22:53:31 +02:00
ide-io.c ide: add struct ide_tp_ops (take 2) 2008-07-23 19:55:56 +02:00
ide-iops.c ide: fix ide_fix_driveid() 2008-08-05 18:16:56 +02:00
ide-lib.c ide: add struct ide_tp_ops (take 2) 2008-07-23 19:55:56 +02:00
ide-pio-blacklist.c ide: move PIO blacklist to ide-pio-blacklist.c 2008-07-16 20:33:39 +02:00
ide-pnp.c ide: add ide_host_add() helper 2008-07-23 19:55:57 +02:00
ide-probe.c ide: use proper printk() KERN_* levels in ide-probe.c 2008-07-24 22:53:36 +02:00
ide-proc.c ide: trivial sparse annotations 2008-07-24 22:53:34 +02:00
ide-scan-pci.c ide: replace remaining __FUNCTION__ occurrences 2008-04-26 22:25:20 +02:00
ide-tape.c ide: fix regression caused by ide_device_{get,put}() addition (take 2) 2008-08-05 18:16:59 +02:00
ide-taskfile.c ide: enable local IRQs in all handlers for TASKFILE_NO_DATA data phase 2008-07-24 22:53:36 +02:00
ide-timings.c ide: move ide_pio_cycle_time() to ide-timings.c 2008-07-16 20:33:39 +02:00
ide.c ide: add ide_device_{get,put}() helpers 2008-07-24 22:53:15 +02:00
Kconfig ide: remove CONFIG_IDE_MAX_HWIFS 2008-08-05 18:17:01 +02:00
Makefile ide: remove stale comments from drivers/ide/Makefile 2008-07-24 22:53:36 +02:00
setup-pci.c ide: drop 'name' parameter from ->init_chipset method 2008-07-24 22:53:33 +02:00