Re: [RFC 1/2] block: implement drain buffers

2008-01-14 Thread James Bottomley
Jens pointed out that I need to lower both phys and hw segments in the drain set up, so an updated patch is attached. James --- >From 7d5cff0af8a2d4017d0b5246aaef33327b053495 Mon Sep 17 00:00:00 2001 From: James Bottomley <[EMAIL PROTECTED]> Date: Thu, 10 Jan 2008 11:30:36 -0600 Subject: block:

[RFC 1/2] block: implement drain buffers

2008-01-10 Thread James Bottomley
On Wed, 2008-01-02 at 20:12 +0900, Tejun Heo wrote: > Misc ATAPI commands may try to transfer more bytes than requested. > For PIO which is performed by libata HSM, this is worked around by > draining extra bytes from __atapi_pio_bytes(). > > This patch implements drain buffer to perform draining