[SCSI] correct attribute_container list usage
authorJames Bottomley <James.Bottomley@steeleye.com>
Mon, 22 Aug 2005 15:06:19 +0000 (10:06 -0500)
committerJames Bottomley <jejb@mulgrave.(none)>
Wed, 31 Aug 2005 03:44:20 +0000 (22:44 -0500)
commit863f832a528c48dd4d82b7bb69eb3f0554d65b9f
tree354c599a07c45c71da2b848a90bbe4a98c42d333
parent855db279dd04b6a17e54534276394afc2bd95436
[SCSI] correct attribute_container list usage

One of the changes in the attribute_container code in the scsi-misc tree
was to add a lock to protect the list of devices per container.  This,
unfortunately, leads to potential scheduling while atomic problems if
there's a sleep in the function called by a trigger.

The correct solution is to use the kernel klist infrastructure instead
which allows lockless traversal of a list.

Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
drivers/base/attribute_container.c
include/linux/attribute_container.h