Remove some uses of PHOLD which were there only to prevent the process'
threads from being swapped out.
Details
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
sys/dev/nvme/nvme_ctrlr.c | ||
---|---|---|
1266 | Why isn't this needed? The user buffer is in the user's process, and almost never on the kernel stack. |
sys/dev/nvme/nvme_ctrlr.c | ||
---|---|---|
1266 | I'm not sure why it was needed even before. The current process won't exit while this thread is sleeping below. |
Any idea how to test this?
Will something else killing, eg, camcontrol which has issued the command before the I/O is complete be a good test?
I guess I'm nervous for reasons that maybe are completly irrational and looking for some way to test this...
sys/dev/nvme/nvme_ctrlr.c | ||
---|---|---|
1266 | Yea, I've never gone and seen why it's needed, only to have people comment on it when I didn't do it elsewhere... |
I will ask Peter to run stress2. I don't know of any good way to specifically test this change.