diff options
author | Hannes Reinecke <hare@suse.de> | 2016-09-30 11:01:14 +0200 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2016-11-08 23:29:46 +0100 |
commit | 4d2095cc42a2d8062590891f929d9d694cbd927f (patch) | |
tree | 43145025e43f3bfc2341ca8e4b4b2c711dfe3e5c /drivers/scsi/fcoe | |
parent | scsi: hisi_sas: Add v2 hw support for different refclk (diff) | |
download | linux-4d2095cc42a2d8062590891f929d9d694cbd927f.tar.xz linux-4d2095cc42a2d8062590891f929d9d694cbd927f.zip |
scsi: libfc: Revisit kref handling
The kref handling in fc_rport is a mess. This patch updates
the kref handling according to the following rules:
- Take a reference whenever scheduling a workqueue
- Take a reference whenever an ELS command is send
- Drop the reference at the end of the workqueue function
- Drop the reference at the end of handling ELS replies
- Take a reference when allocating an rport
- Drop the reference when removing an rport
Signed-off-by: Hannes Reinecke <hare@suse.com>
Acked-by: Johannes Thumshirn <jth@kernel.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/fcoe')
0 files changed, 0 insertions, 0 deletions