diff options
author | Steven Whitehouse <swhiteho@redhat.com> | 2011-10-31 05:52:02 -0400 |
---|---|---|
committer | Steven Whitehouse <swhiteho@redhat.com> | 2011-11-08 04:51:53 -0500 |
commit | 20ed0535d35b74c9e4fa5777766d6e836fe3c90c (patch) | |
tree | 9dc6ec31d998d52a5d66017ee737f108000134a7 /fs/gfs2 | |
parent | 1ea6b8f48918282bdca0b32a34095504ee65bab5 (diff) |
GFS2: Fix up REQ flags
Christoph has split up REQ_PRIO from REQ_META. That means that
we can drop REQ_PRIO from places where is it not needed. I'm
not at all sure that the combination WRITE_FLUSH_FUA | REQ_PRIO
makes any kind of sense, anyway.
In addition, I've added REQ_META to one place in the code where
it was missing. REQ_PRIO has been left for read/writes triggered
by glock acquisition and writeback only. We can adjust it again
if required, but these are the most important points from a
performance perspective.
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Cc: Christoph Hellwig <hch@infradead.org>
Diffstat (limited to 'fs/gfs2')
-rw-r--r-- | fs/gfs2/log.c | 2 | ||||
-rw-r--r-- | fs/gfs2/meta_io.c | 4 | ||||
-rw-r--r-- | fs/gfs2/ops_fstype.c | 2 | ||||
-rw-r--r-- | fs/gfs2/quota.c | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/fs/gfs2/log.c b/fs/gfs2/log.c index 598646434362..2731e657cf7f 100644 --- a/fs/gfs2/log.c +++ b/fs/gfs2/log.c | |||
@@ -626,7 +626,7 @@ static void log_write_header(struct gfs2_sbd *sdp, u32 flags, int pull) | |||
626 | if (test_bit(SDF_NOBARRIERS, &sdp->sd_flags)) | 626 | if (test_bit(SDF_NOBARRIERS, &sdp->sd_flags)) |
627 | submit_bh(WRITE_SYNC | REQ_META | REQ_PRIO, bh); | 627 | submit_bh(WRITE_SYNC | REQ_META | REQ_PRIO, bh); |
628 | else | 628 | else |
629 | submit_bh(WRITE_FLUSH_FUA | REQ_META | REQ_PRIO, bh); | 629 | submit_bh(WRITE_FLUSH_FUA | REQ_META, bh); |
630 | wait_on_buffer(bh); | 630 | wait_on_buffer(bh); |
631 | 631 | ||
632 | if (!buffer_uptodate(bh)) | 632 | if (!buffer_uptodate(bh)) |
diff --git a/fs/gfs2/meta_io.c b/fs/gfs2/meta_io.c index be29858900f6..181586e673f9 100644 --- a/fs/gfs2/meta_io.c +++ b/fs/gfs2/meta_io.c | |||
@@ -435,7 +435,7 @@ struct buffer_head *gfs2_meta_ra(struct gfs2_glock *gl, u64 dblock, u32 extlen) | |||
435 | if (buffer_uptodate(first_bh)) | 435 | if (buffer_uptodate(first_bh)) |
436 | goto out; | 436 | goto out; |
437 | if (!buffer_locked(first_bh)) | 437 | if (!buffer_locked(first_bh)) |
438 | ll_rw_block(READ_SYNC | REQ_META | REQ_PRIO, 1, &first_bh); | 438 | ll_rw_block(READ_SYNC | REQ_META, 1, &first_bh); |
439 | 439 | ||
440 | dblock++; | 440 | dblock++; |
441 | extlen--; | 441 | extlen--; |
@@ -444,7 +444,7 @@ struct buffer_head *gfs2_meta_ra(struct gfs2_glock *gl, u64 dblock, u32 extlen) | |||
444 | bh = gfs2_getbuf(gl, dblock, CREATE); | 444 | bh = gfs2_getbuf(gl, dblock, CREATE); |
445 | 445 | ||
446 | if (!buffer_uptodate(bh) && !buffer_locked(bh)) | 446 | if (!buffer_uptodate(bh) && !buffer_locked(bh)) |
447 | ll_rw_block(READA, 1, &bh); | 447 | ll_rw_block(READA | REQ_META, 1, &bh); |
448 | brelse(bh); | 448 | brelse(bh); |
449 | dblock++; | 449 | dblock++; |
450 | extlen--; | 450 | extlen--; |
diff --git a/fs/gfs2/ops_fstype.c b/fs/gfs2/ops_fstype.c index cb23c2be731a..fe72e79e6ff9 100644 --- a/fs/gfs2/ops_fstype.c +++ b/fs/gfs2/ops_fstype.c | |||
@@ -224,7 +224,7 @@ static int gfs2_read_super(struct gfs2_sbd *sdp, sector_t sector, int silent) | |||
224 | 224 | ||
225 | bio->bi_end_io = end_bio_io_page; | 225 | bio->bi_end_io = end_bio_io_page; |
226 | bio->bi_private = page; | 226 | bio->bi_private = page; |
227 | submit_bio(READ_SYNC | REQ_META | REQ_PRIO, bio); | 227 | submit_bio(READ_SYNC | REQ_META, bio); |
228 | wait_on_page_locked(page); | 228 | wait_on_page_locked(page); |
229 | bio_put(bio); | 229 | bio_put(bio); |
230 | if (!PageUptodate(page)) { | 230 | if (!PageUptodate(page)) { |
diff --git a/fs/gfs2/quota.c b/fs/gfs2/quota.c index 7e528dc14f85..d1962b2f67f9 100644 --- a/fs/gfs2/quota.c +++ b/fs/gfs2/quota.c | |||
@@ -712,7 +712,7 @@ get_a_page: | |||
712 | set_buffer_uptodate(bh); | 712 | set_buffer_uptodate(bh); |
713 | 713 | ||
714 | if (!buffer_uptodate(bh)) { | 714 | if (!buffer_uptodate(bh)) { |
715 | ll_rw_block(READ | REQ_META | REQ_PRIO, 1, &bh); | 715 | ll_rw_block(READ | REQ_META, 1, &bh); |
716 | wait_on_buffer(bh); | 716 | wait_on_buffer(bh); |
717 | if (!buffer_uptodate(bh)) | 717 | if (!buffer_uptodate(bh)) |
718 | goto unlock_out; | 718 | goto unlock_out; |