pNFS layout, ROC and multiple opens

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




Hi folks,

we run into following issue:

on a client host we have two processes - A and B.
Process A opens a file and reads some data:

OPEN -> LAYOUTGET -> READ.
Notice, that layout has a roc set to true.

Process B opens the same file:

OPEN -> READ.

Client obviously re-used layout information.
Now, process A closes the file and as a result,
layout becomes invalid. Nevertheless, process B
still assumes that layout still valid:

I thinks this is the source of the problem:

fs/nfs/pnfs.c:

1074         list_for_each_entry(ctx, &nfsi->open_files, list) {
1075                 state = ctx->state;
1076                 /* Don't return layout if there is open file state */
1077                 if (state != NULL && state->state != 0)
1078                         goto out_noroc;
1079         }
1080 


this is with 3.19. The RHEL7 kernel send yet another LAYOUTGET when the process A
closes the file.

Tigran.


--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux