diff options
author | James Bottomley <James.Bottomley@steeleye.com> | 2006-02-14 17:42:07 +0100 |
---|---|---|
committer | <jejb@mulgrave.il.steeleye.com> | 2006-02-14 18:14:26 +0100 |
commit | faead26d7a06605add627f29aee73ba654ce11f9 (patch) | |
tree | cd809c6e5601caefb66e614ee1f06417819d2151 /drivers/scsi/scsi_sysfs.c | |
parent | [SCSI] sym2: Mask off opcode from RBC (diff) | |
download | linux-faead26d7a06605add627f29aee73ba654ce11f9.tar.xz linux-faead26d7a06605add627f29aee73ba654ce11f9.zip |
[PATCH] add scsi_execute_in_process_context() API
We have several points in the SCSI stack (primarily for our device
functions) where we need to guarantee process context, but (given the
place where the last reference was released) we cannot guarantee this.
This API gets around the issue by executing the function directly if
the caller has process context, but scheduling a workqueue to execute
in process context if the caller doesn't have it. Unfortunately, it
requires memory allocation in interrupt context, but it's better than
what we have previously. The true solution will require a bit of
re-engineering, so isn't appropriate for 2.6.16.
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi/scsi_sysfs.c')
0 files changed, 0 insertions, 0 deletions