Thread (19 messages) 19 messages, 5 authors, 2021-06-11

Re: NFSv4: Mounting NFS server which is down, blocks all other NFS mounts on same machine

From: Benjamin Coddington <hidden>
Date: 2021-06-09 15:00:27

Possibly related (same subject, not in this thread)

On 9 Jun 2021, at 10:41, Trond Myklebust wrote:
On Wed, 2021-06-09 at 10:31 -0400, Benjamin Coddington wrote:
quoted
It's not disputed that mounts waiting on the transport layer will block
other mounts.

It might be able to be changed:  there's this torch:
https://lore.kernel.org/linux-nfs/87378omld4.fsf@notabene.neil.brown.name/ (local)
No.
quoted
..or there may be another way we don't have to wait ..
OK. So let's look at how we can solve the problem of the initial
connection to the server timing out and causing hangs in
nfs41_walk_client_list(), and leave aside any other corner case
problems (such as the server going down while we're mounting).

How about something like the following (compile tested only) patch?
It works as intended for this case, but I don't have my head wrapped around
the implications of the change yet.

Ben
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help