dm.c (5aa2781d964e9835c441932110484bc454b5c207) dm.c (fdb9572b73abd008b80931c3b1f157dac3888bb9)
1/*
2 * Copyright (C) 2001, 2002 Sistina Software (UK) Limited.
3 * Copyright (C) 2004-2008 Red Hat, Inc. All rights reserved.
4 *
5 * This file is released under the GPL.
6 */
7
8#include "dm.h"

--- 541 unchanged lines hidden (view full) ---

550 bio = io->bio;
551
552 if (bio_barrier(bio)) {
553 /*
554 * There can be just one barrier request so we use
555 * a per-device variable for error reporting.
556 * Note that you can't touch the bio after end_io_acct
557 */
1/*
2 * Copyright (C) 2001, 2002 Sistina Software (UK) Limited.
3 * Copyright (C) 2004-2008 Red Hat, Inc. All rights reserved.
4 *
5 * This file is released under the GPL.
6 */
7
8#include "dm.h"

--- 541 unchanged lines hidden (view full) ---

550 bio = io->bio;
551
552 if (bio_barrier(bio)) {
553 /*
554 * There can be just one barrier request so we use
555 * a per-device variable for error reporting.
556 * Note that you can't touch the bio after end_io_acct
557 */
558 if (!md->barrier_error)
558 if (!md->barrier_error && io_error != -EOPNOTSUPP)
559 md->barrier_error = io_error;
560 end_io_acct(io);
561 } else {
562 end_io_acct(io);
563
564 if (io_error != DM_ENDIO_REQUEUE) {
565 trace_block_bio_complete(md->queue, bio);
566

--- 1242 unchanged lines hidden ---
559 md->barrier_error = io_error;
560 end_io_acct(io);
561 } else {
562 end_io_acct(io);
563
564 if (io_error != DM_ENDIO_REQUEUE) {
565 trace_block_bio_complete(md->queue, bio);
566

--- 1242 unchanged lines hidden ---