mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-19 06:44:31 +00:00
- In getnewbuf() unlock the bq lock prior to sleeping when we're out of
buffers. Submitted by: tegge
This commit is contained in:
parent
42f979319e
commit
7137d635ac
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=110625
|
@ -1965,6 +1965,7 @@ getnewbuf(int slpflag, int slptimeo, int size, int maxsize)
|
||||||
int flags;
|
int flags;
|
||||||
char *waitmsg;
|
char *waitmsg;
|
||||||
|
|
||||||
|
mtx_unlock(&bqlock);
|
||||||
if (defrag) {
|
if (defrag) {
|
||||||
flags = VFS_BIO_NEED_BUFSPACE;
|
flags = VFS_BIO_NEED_BUFSPACE;
|
||||||
waitmsg = "nbufkv";
|
waitmsg = "nbufkv";
|
||||||
|
|
Loading…
Reference in a new issue