diff options
author | 2014-09-13 19:41:16 -0700 | |
---|---|---|
committer | 2014-11-12 11:19:22 +0100 | |
commit | 27c888f0bb889693c6a3b6d39eba3265c16c072f (patch) | |
tree | 26513aa57507d3bac7e027eb8561d3d555d8f44d /tools/perf/scripts/python/export-to-postgresql.py | |
parent | scsi_dh_hp_sw: fix return value on failed allocation (diff) | |
download | wireguard-linux-27c888f0bb889693c6a3b6d39eba3265c16c072f.tar.xz wireguard-linux-27c888f0bb889693c6a3b6d39eba3265c16c072f.zip |
scsi_dh: get module reference outside of device handler
We need to grab a reference to the module before calling the attach
routines to avoid a small race vs module removal. It also cleans up
the code significantly as a side effect.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Mike Christie <michaelc@cs.wisc.edu>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions