/[pkgs]/devel/kernel/linux-2.6-block-silently-error-unsupported-empty-barriers-too.patch
ViewVC logotype

Contents of /devel/kernel/linux-2.6-block-silently-error-unsupported-empty-barriers-too.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download) (as text)
Thu Aug 6 19:37:29 2009 UTC (3 months, 2 weeks ago) by jforbes
Branch: MAIN
CVS Tags: kernel-2_6_31-0_174_rc7_git2_fc12, kernel-2_6_31-0_151_rc5_git3_fc12, kernel-2_6_32-0_24_rc4_git0_fc13, kernel-2_6_31-0_190_rc8_fc12, kernel-2_6_31-0_149_rc5_git3_fc12, kernel-2_6_32-0_47_rc7_git1_fc13, kernel-2_6_31-0_142_rc5_git3_fc12, kernel-2_6_32-0_14_rc0_git18_fc13, kernel-2_6_31-0_210_rc9_git1_fc12, kernel-2_6_31-0_213_rc9_git1_fc12, kernel-2_6_31-0_203_rc8_git2_fc12, kernel-2_6_31-0_157_rc6_fc12, kernel-2_6_31-0_185_rc7_git6_fc12, kernel-2_6_31-0_161_rc6_git2_fc12, kernel-2_6_32-0_48_rc7_git1_fc13, kernel-2_6_31-0_177_rc7_git2_fc12, kernel-2_6_32-0_5_rc0_git4_fc13, kernel-2_6_31-0_183_rc7_git5_fc12, kernel-2_6_31-0_139_rc5_git3_fc12, kernel-2_6_31-0_204_rc9_fc12, kernel-2_6_32-0_33_rc5_git1_fc13, kernel-2_6_31-2_fc12, kernel-2_6_31-0_199_rc8_git2_fc12, kernel-2_6_31-0_145_rc5_git3_fc12, F-12-split, kernel-2_6_31-0_137_rc5_git3_fc12, kernel-2_6_31-0_145_2_1_rc5_git3_fc12, kernel-2_6_32-0_51_rc7_git2_fc13, kernel-2_6_31-0_219_rc9_git2_fc12, kernel-2_6_31-0_155_rc6_fc12, kernel-2_6_31-1_fc12, kernel-2_6_31-0_175_rc7_git2_fc12, kernel-2_6_31-0_138_rc5_git3_fc12, kernel-2_6_31-0_156_rc6_fc12, kernel-2_6_31-0_198_rc8_git2_fc12, kernel-2_6_32-0_46_rc7_git1_fc13, kernel-2_6_31-0_209_rc9_git1_fc12, kernel-2_6_31-0_212_rc9_git1_fc12, kernel-2_6_32-0_15_rc1_git0_fc13, kernel-2_6_31-0_196_rc8_git2_fc12, kernel-2_6_31-0_218_rc9_git2_fc12, kernel-2_6_31-0_150_rc5_git3_fc12, kernel-2_6_31-0_180_rc7_git4_fc12, kernel-2_6_31-0_167_rc6_git6_fc12, kernel-2_6_31-0_202_rc8_git2_fc12, kernel-2_6_31-0_214_rc9_git1_fc12, kernel-2_6_31-0_143_rc5_git3_fc12, kernel-2_6_31-0_162_rc6_git2_fc12, kernel-2_6_32-0_39_rc5_git6_fc13, HEAD
Branch point for: kernel-2_6_31-nfs41_rc6, kernel-2_6_31-nfs41_rc7, kernel-2_6_31-pnfs_rc6, kernel-2_6_31-pnfs_rc7, private-f12-2_6_31_rc5, private-myoung-dom0-branch
File MIME type: text/x-patch
Fix kvm virtio_blk errors (bz #514901)
1 From: Mark McLoughlin <markmc@redhat.com>
2 Subject: [PATCH] block: silently error unsupported empty barriers too
3
4 With 2.6.31-rc5 in a KVM guest using dm and virtio_blk, we see the
5 following errors:
6
7 end_request: I/O error, dev vda, sector 0
8 end_request: I/O error, dev vda, sector 0
9
10 The errors go away if dm stops submitting empty barriers, by reverting:
11
12 commit 52b1fd5a27c625c78373e024bf570af3c9d44a79
13 Author: Mikulas Patocka <mpatocka@redhat.com>
14 dm: send empty barriers to targets in dm_flush
15
16 We should error all barriers, even empty barriers, on devices like
17 virtio_blk which don't support them.
18
19 See also:
20
21 https://bugzilla.redhat.com/514901
22
23 Signed-off-by: Mark McLoughlin <markmc@redhat.com>
24 Cc: Rusty Russell <rusty@rustcorp.com.au>
25 Cc: Mikulas Patocka <mpatocka@redhat.com>
26 Cc: Alasdair G Kergon <agk@redhat.com>
27 Cc: Neil Brown <neilb@suse.de>
28 ---
29 block/blk-core.c | 3 +--
30 1 files changed, 1 insertions(+), 2 deletions(-)
31
32 diff --git a/block/blk-core.c b/block/blk-core.c
33 index e3299a7..35ad2bb 100644
34 --- a/block/blk-core.c
35 +++ b/block/blk-core.c
36 @@ -1163,8 +1163,7 @@ static int __make_request(struct request_queue *q, struct bio *bio)
37 const int unplug = bio_unplug(bio);
38 int rw_flags;
39
40 - if (bio_barrier(bio) && bio_has_data(bio) &&
41 - (q->next_ordered == QUEUE_ORDERED_NONE)) {
42 + if (bio_barrier(bio) && (q->next_ordered == QUEUE_ORDERED_NONE)) {
43 bio_endio(bio, -EOPNOTSUPP);
44 return 0;
45 }
46 --
47 1.6.4
48

admin@fedoraproject.org
ViewVC Help
Powered by ViewVC 1.1.2