Skip to content

[3.6] bpo-32186: Release the GIL during lseek and fstat (GH-4652)#4661

Merged
vstinner merged 1 commit into
python:3.6from
miss-islington:backport-6a89481-3.6
Dec 1, 2017
Merged

[3.6] bpo-32186: Release the GIL during lseek and fstat (GH-4652)#4661
vstinner merged 1 commit into
python:3.6from
miss-islington:backport-6a89481-3.6

Conversation

@miss-islington

@miss-islington miss-islington commented Dec 1, 2017

Copy link
Copy Markdown
Contributor

In _io_FileIO_readall_impl(), lseek() and _Py_fstat_noraise() were called
without releasing the GIL. This can cause all threads to hang for
unlimited time when calling FileIO.read() and the NFS server is not
accessible.
(cherry picked from commit 6a89481)

https://bugs.python.org/issue32186

In _io_FileIO_readall_impl(), lseek() and _Py_fstat_noraise() were called
without releasing the GIL. This can cause all threads to hang for
unlimited time when calling FileIO.read() and the NFS server is not
accessible.
(cherry picked from commit 6a89481)

@vstinner vstinner left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, good bot.

@miss-islington

Copy link
Copy Markdown
Contributor Author

@nirs and @vstinner: Backport status check is done, and it's a success ✅ .

@nirs

nirs commented Dec 1, 2017

Copy link
Copy Markdown
Contributor

Looks good 👍

@vstinner vstinner merged commit 8bcd410 into python:3.6 Dec 1, 2017
@miss-islington

Copy link
Copy Markdown
Contributor Author

Thanks, @vstinner!

@miss-islington miss-islington deleted the backport-6a89481-3.6 branch December 1, 2017 06:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants