Hi, On Dec 6, 2007 7:01 AM, Jared Hulbert <jaredeh@gmail.com> wrote:Is it the right place to write synchronously? Now only concern the SATA. Thank you, Kyungmin Park diff --git a/block/ll_rw_blk.c b/block/ll_rw_blk.c index 3b927be..cce0618 100644 --- a/block/ll_rw_blk.c +++ b/block/ll_rw_blk.c @@ -3221,6 +3221,13 @@ static inline void __generic_make_request(struct bio *bio if (bio_check_eod(bio, nr_sectors)) goto end_io; +#if 1 + /* FIXME simple hack */ + if (MAJOR(bio->bi_bdev->bd_dev) == 8 && bio_data_dir(bio) == WRITE) { + /* WRITE_SYNC */ + bio->bi_rw |= (1 << BIO_RW_SYNC); + } +#endif /* * Resolve the mapping until finished. (drivers are * still free to implement/resolve their own stacking --
| Greg Kroah-Hartman | [PATCH 001/196] Chinese: Add the known_regression URI to the HOWTO |
| Linus Torvalds | Linux 2.6.21-rc1 |
| Tarkan Erimer | Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3 |
| pageexec | Re: [stable] Linux 2.6.25.10 |
| Linus Torvalds | Re: [GIT]: Networking |
| Gerrit Renker | [PATCH 15/37] dccp: Set per-connection CCIDs via socket options |
| Natalie Protasevich | [BUG] New Kernel Bugs |
| Jarek Poplawski | [PATCH take 2] pkt_sched: Protect gen estimators under est_lock. |
git: | |
