aboutsummaryrefslogtreecommitdiff
path: root/net/unix/sysctl_net_unix.c
diff options
context:
space:
mode:
authorRoy Shterman <[email protected]>2017-12-25 14:18:30 +0200
committerChristoph Hellwig <[email protected]>2018-01-08 11:01:56 +0100
commit0de5cd367c6aa2a31a1c931628f778f79f8ef22e (patch)
tree3238baff9012d5248e023446cb71dbfafbe77821 /net/unix/sysctl_net_unix.c
parent9ce1f2e12e017607fe17a67cea79ebcf0184e5b3 (diff)
nvme-fabrics: protect against module unload during create_ctrl
NVMe transport driver module unload may (and usually does) trigger iteration over the active controllers and delete them all (sometimes under a mutex). However, a controller can be created concurrently with module unload which can lead to leakage of resources (most important char device node leakage) in case the controller creation occured after the unload delete and drain sequence. To protect against this, we take a module reference to guarantee that the nvme transport driver is not unloaded while creating a controller. Signed-off-by: Roy Shterman <[email protected]> Signed-off-by: Sagi Grimberg <[email protected]> Reviewed-by: Max Gurtovoy <[email protected]> Signed-off-by: Christoph Hellwig <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions