dm io: delay dec_count
authorHeinz Mauelshagen <hjm@redhat.com>
Wed, 9 May 2007 09:33:00 +0000 (02:33 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Wed, 9 May 2007 19:30:47 +0000 (12:30 -0700)
commitc897feb3dcf3c3300849056ee82b01df7bf66d3c
tree29d82a62375d7a6394ba39e11926a695e6691de0
parenta8e6afa2363de7ee0dea1a3297f6236f421c2dd4
dm io: delay dec_count

Delay decrementing the 'struct io' reference count until after the bio has
been freed so that a bio destructor function may reference it.  Required by a
later patch.

Signed-off-by: Heinz Mauelshagen <hjm@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Cc: Milan Broz <mbroz@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/md/dm-io.c