Re: solid state drive access and context switching

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Jared Hulbert <jaredeh@...>
Cc: Alan Cox <alan@...>, Chris Friesen <cfriesen@...>, <linux-kernel@...>
Date: Wednesday, December 5, 2007 - 11:51 pm

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
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
solid state drive access and context switching, Chris Friesen, (Mon Dec 3, 7:06 pm)
Re: solid state drive access and context switching, Jeff Garzik, (Tue Dec 4, 4:52 pm)
Re: solid state drive access and context switching, Jared Hulbert, (Tue Dec 4, 1:54 pm)
Re: solid state drive access and context switching, Chris Friesen, (Tue Dec 4, 4:46 pm)
Re: solid state drive access and context switching, Jared Hulbert, (Tue Dec 4, 5:38 pm)
Re: solid state drive access and context switching, Jared Hulbert, (Tue Dec 4, 5:54 pm)
Re: solid state drive access and context switching, Jared Hulbert, (Tue Dec 4, 8:08 pm)
Re: solid state drive access and context switching, Jared Hulbert, (Wed Dec 5, 6:01 pm)
Re: solid state drive access and context switching, Kyungmin Park, (Wed Dec 5, 11:51 pm)
Re: solid state drive access and context switching, Jared Hulbert, (Tue Dec 4, 8:03 pm)