public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Joe Thornber <joe@fib011235813.fsnet.co.uk>
To: Linux Mailing List <linux-kernel@vger.kernel.org>,
	linux-lvm@sistina.com, Alan Cox <alan@redhat.com>
Cc: christophe.varoqui@free.fr
Subject: Re: [Patch] Latest device-mapper snapshot
Date: Fri, 25 Oct 2002 10:52:11 +0100	[thread overview]
Message-ID: <20021025095211.GA1724@fib011235813.fsnet.co.uk> (raw)
In-Reply-To: <20021023102503.GA25925@fib011235813.fsnet.co.uk>

Doh !

# [Device-mapper]
# Forgot a bio_put()
# --------------------------------------------
#
diff -Nru a/drivers/md/dm.c b/drivers/md/dm.c
--- a/drivers/md/dm.c	Fri Oct 25 10:47:49 2002
+++ b/drivers/md/dm.c	Fri Oct 25 10:47:49 2002
@@ -270,8 +270,10 @@
 	 * finished.  If a partial io errors I'm assuming it won't
 	 * be requeued.  FIXME: check this.
 	 */
-	if (error || !bio->bi_size)
+	if (error || !bio->bi_size) {
 		dec_pending(io, error);
+		bio_put(bio);
+	}
 
 	return 0;
 }

      parent reply	other threads:[~2002-10-25  9:46 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-23 10:25 [Patch] Latest device-mapper snapshot Joe Thornber
2002-10-23 17:58 ` [linux-lvm] " Austin Gonyou
2002-10-25  9:52 ` Joe Thornber [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20021025095211.GA1724@fib011235813.fsnet.co.uk \
    --to=joe@fib011235813.fsnet.co.uk \
    --cc=alan@redhat.com \
    --cc=christophe.varoqui@free.fr \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-lvm@sistina.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox