diff options
author | Mike Christie <mchristi@redhat.com> | 2017-06-23 08:18:20 +0200 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2017-07-07 08:11:42 +0200 |
commit | 9260695d65590f4711d1166eadbfcb0acfa0625a (patch) | |
tree | a5578a39bf795f15434f557a7b716dd40fe1abe5 /drivers/nubus | |
parent | tcmu: drop configured check in destroy (diff) | |
download | linux-9260695d65590f4711d1166eadbfcb0acfa0625a.tar.xz linux-9260695d65590f4711d1166eadbfcb0acfa0625a.zip |
tcmu: fix multiple uio open/close sequences
If the uio device is open and closed multiple times, the
kref count will be off due to tcmu_release getting called
multiple times for each close. This patch integrates
Wenji Tang's patch to add a kref_get on open that now
matches the kref_put done on tcmu_release and adds
a kref_put in tcmu_destroy_device to match the kref_get
done in succesful tcmu_configure_device calls.
Signed-off-by: Mike Christie <mchristi@redhat.com>
Cc: Wenji Tang <tang.wenji@zte.com.cn>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/nubus')
0 files changed, 0 insertions, 0 deletions