On Mon, Jul 24, 2000 at 12:31:23PM -0600, [EMAIL PROTECTED] wrote:
> Do we need to do anything in the scsi hba driver to make it work
> on SMP system or it should work fine without any changes except
> re-compilation ?
If the locking has been done correctly, recompilation of your kernel module
should be enough.
If not, you will enjoy all the races and loose your data.
However, locking at for 2.2 is extremely easy. There are just two ways your
code can be called:
* From mid-level code
* From IRQ
The mid-level uses the global io_request_lock to protect you from races.
If you do the same in your IRQ handler you should be safe.
Of course you can think about your own locking and drop the coarse
io_request_lock and use your own one instead, but I would discourage you to
do so.
Regards,
--
Kurt Garloff <[EMAIL PROTECTED]> Eindhoven, NL
GPG key: See mail header, key servers Linux kernel development
SuSE GmbH, Nuernberg, FRG SCSI, Security
PGP signature