[SCSI] tgt: fix warning
authorJoe Eykholt <jeykholt@cisco.com>
Fri, 6 Aug 2010 00:50:37 +0000 (17:50 -0700)
committerJames Bottomley <James.Bottomley@suse.de>
Wed, 11 Aug 2010 04:55:42 +0000 (00:55 -0400)
Using scsi_tgt_lib in a new target module, we were getting
the following warning and a stack traceback on every I/O completion:

WARNING: at block/blk-core.c:1108

Which is claiming we may be leaking a bio.
We don't leak bios (blk_rq_unmap_user should free them).

Set rq->bio to NULL before calling scsi_host_put_command().
This was as advised by Fujita Tomonori.

Signed-off-by: Joe Eykholt <jeykholt@cisco.com>
Acked-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>

No differences found