summaryrefslogtreecommitdiffstats
path: root/net/sched
diff options
context:
space:
mode:
authorMarcin Dziegielewski <marcin.dziegielewski@intel.com>2019-05-04 20:37:58 +0200
committerJens Axboe <axboe@kernel.dk>2019-05-06 10:19:18 -0600
commitf41d427cdd9ec379e35777d13622c3cd382bf0a2 (patch)
treea7b28cf575bf30ae35f4043aff62f3f11502c977 /net/sched
parent4bbae699226ea72a91a665f489c0d85fb48885d1 (diff)
downloadlinux-f41d427cdd9ec379e35777d13622c3cd382bf0a2.tar.bz2
lightnvm: prevent race condition on pblk remove
When we trigger nvm target remove during device hot unplug, there is a probability to hit a general protection fault. This is caused by use of nvm_dev thay may be freed from another (hot unplug) thread (in the nvm_unregister function). Introduce lock in nvme_ioctl_dev_remove function to prevent this situation. Signed-off-by: Marcin Dziegielewski <marcin.dziegielewski@intel.com> Reviewed-by: Javier González <javier@javigon.com> Signed-off-by: Matias Bjørling <mb@lightnvm.io> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'net/sched')
0 files changed, 0 insertions, 0 deletions