scsi: core: Also call destroy_rcu_head() for passthrough requests
authorBart Van Assche <bvanassche@acm.org>
Mon, 18 Mar 2019 16:29:26 +0000 (09:29 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 19 Mar 2019 18:13:08 +0000 (14:13 -0400)
commitdb983f6eef57a9d78af79bc32389b7e60eb3c47d
tree5dfc10c6ece58933b838315e1229362aaa041e05
parent165aa2bfb42904b1bec4bf2fa257c8c603c14a06
scsi: core: Also call destroy_rcu_head() for passthrough requests

cmd->rcu is initialized by scsi_initialize_rq(). For passthrough
requests, blk_get_request() calls scsi_initialize_rq(). For filesystem
requests, scsi_init_command() calls scsi_initialize_rq(). Make sure
that destroy_rcu_head() is called for passthrough requests.

Cc: Christoph Hellwig <hch@lst.de>
Cc: Hannes Reinecke <hare@suse.com>
Cc: Ewan D. Milne <emilne@redhat.com>
Cc: Johannes Thumshirn <jthumshirn@suse.de>
Reported-by: Ewan D. Milne <emilne@redhat.com>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/scsi_lib.c