mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 09:41:03 -04:00
zfs_map_page/zfs_unmap_page: do not use sched_pin() and SFB_CPUPRIVATE
zfs_map_page/zfs_unmap_page are mostly called around potential I/O paths and it seems to be a not very good idea to do cpu pinning there. Suggested by: kib MFC after: 2 weeks
This commit is contained in:
parent
ff5e15a487
commit
68653c3bd6
1 changed files with 1 additions and 3 deletions
|
|
@ -358,8 +358,7 @@ static caddr_t
|
|||
zfs_map_page(vm_page_t pp, struct sf_buf **sfp)
|
||||
{
|
||||
|
||||
sched_pin();
|
||||
*sfp = sf_buf_alloc(pp, SFB_CPUPRIVATE);
|
||||
*sfp = sf_buf_alloc(pp, 0);
|
||||
return ((caddr_t)sf_buf_kva(*sfp));
|
||||
}
|
||||
|
||||
|
|
@ -368,7 +367,6 @@ zfs_unmap_page(struct sf_buf *sf)
|
|||
{
|
||||
|
||||
sf_buf_free(sf);
|
||||
sched_unpin();
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue