From: Patrick Farrell Date: Wed, 16 May 2018 15:09:45 +0000 (-0500) Subject: LUDOC-379: Ladvise Lockahead X-Git-Tag: 2.11.0^0 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=59ea0bc323e725cf9e5051144d82665f27814ce6;p=doc%2Fmanual.git LUDOC-379: Ladvise Lockahead Correct errors in lockahead documentation. Change-Id: I833b782c437d5429bca365207d05df21d625eb26 Signed-off-by: Patrick Farrell Reviewed-on: https://review.whamcloud.com/32436 Tested-by: Jenkins Reviewed-by: Joseph Gmitter --- diff --git a/LustreTuning.xml b/LustreTuning.xml index 9864883..e4970f1 100644 --- a/LustreTuning.xml +++ b/LustreTuning.xml @@ -2186,8 +2186,6 @@ ldlm.namespaces.filter-fsname-*. of the given mode on the given byte range noexpand Disable extent lock expansion behavior for I/O to this file descriptor - unset Unset/clear a previous advice - (Currently only supports LU_ADVISE_LOCKNOEXPAND) @@ -2267,10 +2265,9 @@ ldlm.namespaces.filter-fsname-*. from the normal LDLM locking behavior. - Note that the noexpand and unset - advices work on a specific file descriptor, so using them via lfs has no - effect. They must be used on a particular file descriptor which is used - for i/o to have any effect. + Note that the noexpand advice works on a specific + file descriptor, so using it via lfs has no effect. It must be used + on a particular file descriptor which is used for i/o to have any effect. The main difference between the Linux fadvise() system call and lfs ladvise is that diff --git a/SettingLustreProperties.xml b/SettingLustreProperties.xml index 5aa4c8d..4c2628f 100644 --- a/SettingLustreProperties.xml +++ b/SettingLustreProperties.xml @@ -861,11 +861,17 @@ struct llapi_lu_ladvise { descriptor fd from an application to one or more Lustre servers. Optionally, flags can modify how the advice will be processed via bitwise-or'd values: - - LF_ASYNC: Clients return to userspace + + + LF_ASYNC: Clients return to userspace immediately after submitting ladvise RPCs, leaving server threads to handle the advices asynchronously. - + + + LF_UNSET: Unset/clear a previous advice + (Currently only supports LU_ADVISE_LOCKNOEXPAND). + + Each of the ladvise elements is an llapi_lu_ladvise structure, which contains the following fields: @@ -945,7 +951,8 @@ struct llapi_lu_ladvise { When using advices which support them, the 'lla_value2' field is used to communicate per-advice flags and can be - referred to as 'lla_peradvice_flags'. + referred to as 'lla_peradvice_flags'. Both LF_ASYNC and + LF_UNSET are supported as peradvice flags.