Joe Eykholt 3deee42088 [SCSI] tgt: fix warning
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>
2010-08-11 00:55:42 -04:00
..
2010-07-20 16:25:41 -07:00
2010-08-04 15:14:38 +02:00
2010-08-04 11:16:01 +02:00
2010-08-03 11:55:15 -04:00
2010-08-05 13:26:20 +01:00
2010-08-11 00:55:42 -04:00
2010-07-26 08:05:31 -07:00