]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[SCSI] bsg: make class backlinks
authorJames Bottomley <James.Bottomley@steeleye.com>
Fri, 20 Jul 2007 23:22:17 +0000 (18:22 -0500)
committerJames Bottomley <jejb@mulgrave.localdomain>
Sat, 21 Jul 2007 13:58:23 +0000 (08:58 -0500)
commit39dca558a5b52b63e49bc234a7e887be092aa690
tree31c3c412458e657fdbedc73f50b7de26c7ed0c4a
parent0e78d158b67fba3977f577f293c323359d80dd0e
[SCSI] bsg: make class backlinks

Currently, bsg doesn't make class backlinks (a process whereby you'd get
a link to bsg in the device directory in the same way you get one for
sg).  This is because the bsg device is uninitialised, so the class
device has nothing it can attach to.  The fix is to make the bsg device
point to the cdevice of the entity creating the bsg, necessitating
changing the bsg_register_queue() prototype into a form that takes the
generic device.

Acked-by: FUJITA Tomonori <tomof@acm.org>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
block/bsg.c
drivers/scsi/scsi_sysfs.c
drivers/scsi/scsi_transport_sas.c
include/linux/bsg.h