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

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

 



On Sat, 22 Apr 2006 00:30:34 +0200 (CEST) Guennadi Liakhovetski wrote:

> 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)

It wasn't there but I saw other recent patches like that, so I
was aware of it.  Fixed now.

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

Oops, fixing that one.

and added the flush_kernel_dcache_page() call too.

Thanks.
---
~Randy
-
: 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