summaryrefslogtreecommitdiffstats
path: root/include/linux/bsg-lib.h
diff options
context:
space:
mode:
authorJohannes Thumshirn <jthumshirn@suse.de>2016-11-17 10:31:18 +0100
committerMartin K. Petersen <martin.petersen@oracle.com>2016-11-17 20:15:25 -0500
commitbf0f2d380f15f1fa05254b000ddeeb560dfb8638 (patch)
treeea8d464ada113c1f598589b4c724946f45410716 /include/linux/bsg-lib.h
parentad7660cc1ef13551e3d0a649aaba7c728b8c0ac0 (diff)
downloadlinux-0-day-bf0f2d380f15f1fa05254b000ddeeb560dfb8638.tar.gz
linux-0-day-bf0f2d380f15f1fa05254b000ddeeb560dfb8638.tar.xz
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>
Diffstat (limited to 'include/linux/bsg-lib.h')
-rw-r--r--include/linux/bsg-lib.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/bsg-lib.h b/include/linux/bsg-lib.h
index a226652a5a6c7..58e0717fda6e4 100644
--- a/include/linux/bsg-lib.h
+++ b/include/linux/bsg-lib.h
@@ -40,6 +40,8 @@ struct bsg_job {
struct device *dev;
struct request *req;
+ struct kref kref;
+
/* Transport/driver specific request/reply structs */
void *request;
void *reply;