FUJITA Tomonori
97f46ae45c
[SCSI] bsg: add release callback support
...
This patch adds release callback support, which is called when a bsg
device goes away. bsg_register_queue() takes a pointer to a callback
function. This feature is useful for stuff like sas_host that can't
use the release callback in struct device.
If a caller doesn't need bsg's release callback, it can call
bsg_register_queue() with NULL pointer (e.g. scsi devices can use
release callback in struct device so they don't need bsg's callback).
With this patch, bsg uses kref for refcounts on bsg devices instead of
get/put_device in fops->open/release. bsg calls put_device and the
caller's release callback (if it was registered) in kref_put's
release.
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
2008-04-22 15:16:32 -05:00
..
acpi
ACPI, cpuidle: Clarify C-state description in sysfs
2008-02-14 00:09:55 -05:00
asm-alpha
asm-generic: add node_to_cpumask_ptr macro
2008-04-19 19:44:58 +02:00
asm-arm
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/drzeus/mmc
2008-04-21 17:23:30 -07:00
asm-avr32
avr32: add include/asm-avr32/serial.h
2008-04-19 20:40:10 -04:00
asm-blackfin
include: Remove unnecessary inclusions of asm/semaphore.h
2008-04-18 22:16:54 -04:00
asm-cris
Generic semaphore implementation
2008-04-17 10:42:34 -04:00
asm-frv
frv: remove HARD_RESET_NOW()
2008-04-21 16:03:13 -07:00
asm-generic
asm-generic: add node_to_cpumask_ptr macro
2008-04-19 19:44:58 +02:00
asm-h8300
Generic semaphore implementation
2008-04-17 10:42:34 -04:00
asm-ia64
Merge branch 'semaphore' of git://git.kernel.org/pub/scm/linux/kernel/git/willy/misc
2008-04-21 15:41:27 -07:00
asm-m32r
Merge git://git.kernel.org/pub/scm/linux/kernel/git/bart/ide-2.6
2008-04-18 08:39:24 -07:00
asm-m68k
Generic semaphore implementation
2008-04-17 10:42:34 -04:00
asm-m68knommu
Generic semaphore implementation
2008-04-17 10:42:34 -04:00
asm-mips
Merge git://git.kernel.org/pub/scm/linux/kernel/git/bart/ide-2.6
2008-04-18 08:39:24 -07:00
asm-mn10300
Generic semaphore implementation
2008-04-17 10:42:34 -04:00
asm-parisc
Merge git://git.kernel.org/pub/scm/linux/kernel/git/bart/ide-2.6
2008-04-18 08:39:24 -07:00
asm-powerpc
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc
2008-04-21 15:50:49 -07:00
asm-ppc
include: Remove unnecessary inclusions of asm/semaphore.h
2008-04-18 22:16:54 -04:00
asm-s390
Merge branch 'semaphore' of git://git.kernel.org/pub/scm/linux/kernel/git/willy/misc
2008-04-18 08:25:29 -07:00
asm-sh
Merge git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/pci-2.6
2008-04-21 15:58:35 -07:00
asm-sparc
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc-2.6
2008-04-21 17:20:53 -07:00
asm-sparc64
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc-2.6
2008-04-21 17:20:53 -07:00
asm-um
Generic semaphore implementation
2008-04-17 10:42:34 -04:00
asm-v850
Generic semaphore implementation
2008-04-17 10:42:34 -04:00
asm-x86
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mingo/linux-2.6-sched-devel
2008-04-21 15:40:24 -07:00
asm-xtensa
Generic semaphore implementation
2008-04-17 10:42:34 -04:00
crypto
[CRYPTO] aes: Export generic setkey
2008-04-21 10:19:34 +08:00
keys
KEYS: Fix the comment to match the file name in rxrpc-type.h.
2008-04-21 22:43:55 +00:00
linux
[SCSI] bsg: add release callback support
2008-04-22 15:16:32 -05:00
math-emu
media
V4L/DVB (7192): Adds support for Genius TVGo A11MCE
2008-02-18 11:15:19 -03:00
mtd
net
[INET]: Uninline the __inet_inherit_port call.
2008-04-17 23:18:15 -07:00
pcmcia
rdma
IB: convert struct class_device to struct device
2008-04-19 19:10:30 -07:00
rxrpc
scsi
[SCSI] rework scsi_target allocation
2008-04-22 15:16:31 -05:00
sound
[ALSA] opl3 - Fix compilation without sequencer support
2008-02-22 14:20:08 -08:00
video
xen
Kbuild