Daniel McNeil <daniel _at_ osdl.org> wrote: > > This is an update of AIO fallback patch and with the bio_count race > fixed by changing bio_list_lock into bio_lock and using that for all > the bio fields. I changed bio_count and bios_in_flight from atomics > into int. They are now proctected by the bio_lock. I fixed the race, > by in finished_one_bio() by leaving the bio_count at 1 until after the > dio_complete() and then do the bio_count decrement and wakeup holding > the bio_lock. Sob. Daniel, please assume that I have an extremely small brain and forget things very easily. And that 2,000 patches have passed under my nose since last I contemplated the direct-io code, OK? What bio_count race? And the patch seems to be doing more than your description describes? - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo _at_ vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Follow-Ups:
- Re: [PATCH linux-2.6.1-rc1-mm1] aiodio_fallback_bio_count.patchSuparna Bhattacharya
- Re: [PATCH linux-2.6.0-test10-mm1] filemap_fdatawait.patchSuparna Bhattacharya
- [PATCH linux-2.6.1-rc1-mm1] filemap_fdatawait.patchDaniel McNeil
- Re: [PATCH linux-2.6.1-rc1-mm1] aiodio_fallback_bio_count.patchDaniel McNeil
- Prev by Date: Re: udev and devfs - The final word
- Next by Date: [no subject]
- Previous by thread: Re: [PATCH linux-2.6.1-rc1-mm1] aiodio_fallback_bio_count.patch
- Next by thread: Re: [PATCH linux-2.6.1-rc1-mm1] aiodio_fallback_bio_count.patch
- Indexes:[Main][Thread]