]> git.baikalelectronics.ru Git - kernel.git/commit
block: add reference counting for struct bsg_job
authorJohannes Thumshirn <jthumshirn@suse.de>
Thu, 17 Nov 2016 09:31:18 +0000 (10:31 +0100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 18 Nov 2016 01:15:25 +0000 (20:15 -0500)
commit54d3f5b4bfb3cd17de14c4aca779f3af9cae8dec
treeea8d464ada113c1f598589b4c724946f45410716
parent0a2c2ae75ba8a11df5f94a62d3e144931979fbdf
block: add reference counting for struct bsg_job

Add reference counting to 'struct bsg_job' so we can implement a reuqest
timeout handler for bsg_jobs, which is needed for Fibre Channel.

Signed-off-by: Johannes Thumshirn <jthumshirn@suse.de>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
block/bsg-lib.c
include/linux/bsg-lib.h