Re: [PATCH] dc395x: dynamically map scatter-gather for PIO (take 2)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 21 Apr 2006, Randy.Dunlap wrote:

> My current (ugly, debug) patch is at
>   http://www.xenotime.net/linux/patches/aha152x-sg-pio.patch 

A couple of quick notes:

1. You have to disable local interrupts before (scsi_)kmap_atomic(_sg)() 
and restore them after (scsi_)kunmap_atomic(_sg)() (didn't check the 
context of your patch, so, maybe it is already the case, if not, please, 
fix)

2. You have to initialise your sg_len variable before calling 
scsi_kmap_atomic_sg()

Thanks
Guennadi
---
Guennadi Liakhovetski
-
: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux