Help! There must be a function which will update the data in the disk cache. >From __make_request(), it does ordering(neighboring) the requests, it does not deal with the same block request. Please give me a light! > > It improved a lot for the sync I/O. > However, I am looking for a solution to handle > the regular async I/O with a page data on the > same sector repeatedly like writing the MD SB > data to disk without flushing. > > The follwing is my simple algorithm for it; > > bh=getblk(dev, block, size); > if (buffer_uptodate(bh)) { /* still in cache, not flushed yet */ > bh->b_data = "updated data"; > brelse(bh); > } > else { /* all were flushed or new */ > . > . > mark_buffer_uptodate(bh,1); > mark_buffer_dirty(bh); > generic_make_request(rw, &bh); > } > > Please give me your suggestion or comment. > Bo - To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html