Re: [patch] set kiobuf io_count once, instead of increment

Stephen C. Tweedie (sct@redhat.com)
Fri, 2 Mar 2001 18:43:08 +0000


On Tue, Feb 27, 2001 at 04:22:22PM -0800, Robert Read wrote:
> Currently in brw_kiovec, iobuf->io_count is being incremented as each
> bh is submitted, and decremented in the bh->b_end_io(). This means
> io_count can go to zero before all the bhs have been submitted,
> especially during a large request. This causes the end_kio_request()
> to be called before all of the io is complete.

brw_kiovec is currently entirely synchronous, so end_kio_request()
calling is probably not a big deal right now. It would be much more
important for an async version.

--Stephen
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/