[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)
commit53c165e0a6c8a4ff7df316557528fa7a52d20711
tree354c599a07c45c71da2b848a90bbe4a98c42d333
parent51490c89f95b8581782e9baa855da166441852be
[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