Home
last modified time | relevance | path

Searched full:ls (Results 1 – 25 of 1254) sorted by relevance

12345678910>>...51

/kernel/linux/linux-6.6/fs/dlm/
Dlockspace.c35 static ssize_t dlm_control_store(struct dlm_ls *ls, const char *buf, size_t len) in dlm_control_store() argument
43 ls = dlm_find_lockspace_local(ls->ls_local_handle); in dlm_control_store()
44 if (!ls) in dlm_control_store()
49 dlm_ls_stop(ls); in dlm_control_store()
52 dlm_ls_start(ls); in dlm_control_store()
57 dlm_put_lockspace(ls); in dlm_control_store()
61 static ssize_t dlm_event_store(struct dlm_ls *ls, const char *buf, size_t len) in dlm_event_store() argument
63 int rc = kstrtoint(buf, 0, &ls->ls_uevent_result); in dlm_event_store()
67 set_bit(LSFL_UEVENT_WAIT, &ls->ls_flags); in dlm_event_store()
68 wake_up(&ls->ls_uevent_wait); in dlm_event_store()
[all …]
Drecoverd.c31 static int enable_locking(struct dlm_ls *ls, uint64_t seq) in enable_locking() argument
35 down_write(&ls->ls_recv_active); in enable_locking()
37 spin_lock(&ls->ls_recover_lock); in enable_locking()
38 if (ls->ls_recover_seq == seq) { in enable_locking()
39 set_bit(LSFL_RUNNING, &ls->ls_flags); in enable_locking()
41 up_write(&ls->ls_in_recovery); in enable_locking()
42 clear_bit(LSFL_RECOVER_LOCK, &ls->ls_flags); in enable_locking()
45 spin_unlock(&ls->ls_recover_lock); in enable_locking()
47 up_write(&ls->ls_recv_active); in enable_locking()
51 static int ls_recover(struct dlm_ls *ls, struct dlm_recover *rv) in ls_recover() argument
[all …]
Drecover.c42 int dlm_wait_function(struct dlm_ls *ls, int (*testfn) (struct dlm_ls *ls)) in dlm_wait_function() argument
48 rv = wait_event_timeout(ls->ls_wait_general, in dlm_wait_function()
49 testfn(ls) || dlm_recovery_stopped(ls), in dlm_wait_function()
53 if (test_bit(LSFL_RCOM_WAIT, &ls->ls_flags)) { in dlm_wait_function()
54 log_debug(ls, "dlm_wait_function timed out"); in dlm_wait_function()
59 if (dlm_recovery_stopped(ls)) { in dlm_wait_function()
60 log_debug(ls, "dlm_wait_function aborted"); in dlm_wait_function()
74 uint32_t dlm_recover_status(struct dlm_ls *ls) in dlm_recover_status() argument
77 spin_lock(&ls->ls_recover_lock); in dlm_recover_status()
78 status = ls->ls_recover_status; in dlm_recover_status()
[all …]
Dmember.c28 void dlm_slot_save(struct dlm_ls *ls, struct dlm_rcom *rc, in dlm_slot_save() argument
40 void dlm_slots_copy_out(struct dlm_ls *ls, struct dlm_rcom *rc) in dlm_slots_copy_out() argument
50 for (i = 0; i < ls->ls_slots_size; i++) { in dlm_slots_copy_out()
51 slot = &ls->ls_slots[i]; in dlm_slots_copy_out()
62 static void log_slots(struct dlm_ls *ls, uint32_t gen, int num_slots, in log_slots() argument
94 log_rinfo(ls, "generation %u slots %d%s", gen, num_slots, line); in log_slots()
97 int dlm_slots_copy_in(struct dlm_ls *ls) in dlm_slots_copy_in() argument
100 struct dlm_rcom *rc = ls->ls_recover_buf; in dlm_slots_copy_in()
111 if (gen <= ls->ls_generation) { in dlm_slots_copy_in()
112 log_error(ls, "dlm_slots_copy_in gen %u old %u", in dlm_slots_copy_in()
[all …]
Drcom.c25 static int rcom_response(struct dlm_ls *ls) in rcom_response() argument
27 return test_bit(LSFL_RCOM_READY, &ls->ls_flags); in rcom_response()
30 static void _create_rcom(struct dlm_ls *ls, int to_nodeid, int type, int len, in _create_rcom() argument
39 rc->rc_header.u.h_lockspace = cpu_to_le32(ls->ls_global_id); in _create_rcom()
50 static int create_rcom(struct dlm_ls *ls, int to_nodeid, int type, int len, in create_rcom() argument
65 _create_rcom(ls, to_nodeid, type, len, rc_ret, mb, mb_len, seq); in create_rcom()
70 static int create_rcom_stateless(struct dlm_ls *ls, int to_nodeid, int type, in create_rcom_stateless() argument
86 _create_rcom(ls, to_nodeid, type, len, rc_ret, mb, mb_len, seq); in create_rcom_stateless()
102 static void set_rcom_status(struct dlm_ls *ls, struct rcom_status *rs, in set_rcom_status() argument
112 static void set_rcom_config(struct dlm_ls *ls, struct rcom_config *rf, in set_rcom_config() argument
[all …]
Drequestqueue.c33 void dlm_add_requestqueue(struct dlm_ls *ls, int nodeid, in dlm_add_requestqueue() argument
46 e->recover_seq = ls->ls_recover_seq & 0xFFFFFFFF; in dlm_add_requestqueue()
51 atomic_inc(&ls->ls_requestqueue_cnt); in dlm_add_requestqueue()
52 mutex_lock(&ls->ls_requestqueue_mutex); in dlm_add_requestqueue()
53 list_add_tail(&e->list, &ls->ls_requestqueue); in dlm_add_requestqueue()
54 mutex_unlock(&ls->ls_requestqueue_mutex); in dlm_add_requestqueue()
68 int dlm_process_requestqueue(struct dlm_ls *ls) in dlm_process_requestqueue() argument
74 mutex_lock(&ls->ls_requestqueue_mutex); in dlm_process_requestqueue()
77 if (list_empty(&ls->ls_requestqueue)) { in dlm_process_requestqueue()
78 mutex_unlock(&ls->ls_requestqueue_mutex); in dlm_process_requestqueue()
[all …]
Ddir.c33 int dlm_hash2nodeid(struct dlm_ls *ls, uint32_t hash) in dlm_hash2nodeid() argument
37 if (ls->ls_num_nodes == 1) in dlm_hash2nodeid()
40 node = (hash >> 16) % ls->ls_total_weight; in dlm_hash2nodeid()
41 return ls->ls_node_array[node]; in dlm_hash2nodeid()
50 void dlm_recover_dir_nodeid(struct dlm_ls *ls) in dlm_recover_dir_nodeid() argument
54 down_read(&ls->ls_root_sem); in dlm_recover_dir_nodeid()
55 list_for_each_entry(r, &ls->ls_root_list, res_root_list) { in dlm_recover_dir_nodeid()
56 r->res_dir_nodeid = dlm_hash2nodeid(ls, r->res_hash); in dlm_recover_dir_nodeid()
58 up_read(&ls->ls_root_sem); in dlm_recover_dir_nodeid()
61 int dlm_recover_directory(struct dlm_ls *ls, uint64_t seq) in dlm_recover_directory() argument
[all …]
Dlock.c16 request_lock(ls, lkb)
17 convert_lock(ls, lkb)
18 unlock_lock(ls, lkb)
19 cancel_lock(ls, lkb)
91 static void do_purge(struct dlm_ls *ls, int nodeid, int pid);
204 static inline void dlm_lock_recovery(struct dlm_ls *ls) in dlm_lock_recovery() argument
206 down_read(&ls->ls_in_recovery); in dlm_lock_recovery()
209 void dlm_unlock_recovery(struct dlm_ls *ls) in dlm_unlock_recovery() argument
211 up_read(&ls->ls_in_recovery); in dlm_unlock_recovery()
214 int dlm_lock_recovery_try(struct dlm_ls *ls) in dlm_lock_recovery_try() argument
[all …]
/kernel/linux/linux-5.10/fs/dlm/
Dlockspace.c35 static ssize_t dlm_control_store(struct dlm_ls *ls, const char *buf, size_t len) in dlm_control_store() argument
43 ls = dlm_find_lockspace_local(ls->ls_local_handle); in dlm_control_store()
44 if (!ls) in dlm_control_store()
49 dlm_ls_stop(ls); in dlm_control_store()
52 dlm_ls_start(ls); in dlm_control_store()
57 dlm_put_lockspace(ls); in dlm_control_store()
61 static ssize_t dlm_event_store(struct dlm_ls *ls, const char *buf, size_t len) in dlm_event_store() argument
63 int rc = kstrtoint(buf, 0, &ls->ls_uevent_result); in dlm_event_store()
67 set_bit(LSFL_UEVENT_WAIT, &ls->ls_flags); in dlm_event_store()
68 wake_up(&ls->ls_uevent_wait); in dlm_event_store()
[all …]
Drecoverd.c31 static int enable_locking(struct dlm_ls *ls, uint64_t seq) in enable_locking() argument
35 down_write(&ls->ls_recv_active); in enable_locking()
37 spin_lock(&ls->ls_recover_lock); in enable_locking()
38 if (ls->ls_recover_seq == seq) { in enable_locking()
39 set_bit(LSFL_RUNNING, &ls->ls_flags); in enable_locking()
41 up_write(&ls->ls_in_recovery); in enable_locking()
42 clear_bit(LSFL_RECOVER_LOCK, &ls->ls_flags); in enable_locking()
45 spin_unlock(&ls->ls_recover_lock); in enable_locking()
47 up_write(&ls->ls_recv_active); in enable_locking()
51 static int ls_recover(struct dlm_ls *ls, struct dlm_recover *rv) in ls_recover() argument
[all …]
Dmember.c27 void dlm_slot_save(struct dlm_ls *ls, struct dlm_rcom *rc, in dlm_slot_save() argument
39 void dlm_slots_copy_out(struct dlm_ls *ls, struct dlm_rcom *rc) in dlm_slots_copy_out() argument
49 for (i = 0; i < ls->ls_slots_size; i++) { in dlm_slots_copy_out()
50 slot = &ls->ls_slots[i]; in dlm_slots_copy_out()
61 static void log_slots(struct dlm_ls *ls, uint32_t gen, int num_slots, in log_slots() argument
93 log_rinfo(ls, "generation %u slots %d%s", gen, num_slots, line); in log_slots()
96 int dlm_slots_copy_in(struct dlm_ls *ls) in dlm_slots_copy_in() argument
99 struct dlm_rcom *rc = ls->ls_recover_buf; in dlm_slots_copy_in()
110 if (gen <= ls->ls_generation) { in dlm_slots_copy_in()
111 log_error(ls, "dlm_slots_copy_in gen %u old %u", in dlm_slots_copy_in()
[all …]
Drecover.c42 int dlm_wait_function(struct dlm_ls *ls, int (*testfn) (struct dlm_ls *ls)) in dlm_wait_function() argument
48 rv = wait_event_timeout(ls->ls_wait_general, in dlm_wait_function()
49 testfn(ls) || dlm_recovery_stopped(ls), in dlm_wait_function()
53 if (test_bit(LSFL_RCOM_WAIT, &ls->ls_flags)) { in dlm_wait_function()
54 log_debug(ls, "dlm_wait_function timed out"); in dlm_wait_function()
59 if (dlm_recovery_stopped(ls)) { in dlm_wait_function()
60 log_debug(ls, "dlm_wait_function aborted"); in dlm_wait_function()
74 uint32_t dlm_recover_status(struct dlm_ls *ls) in dlm_recover_status() argument
77 spin_lock(&ls->ls_recover_lock); in dlm_recover_status()
78 status = ls->ls_recover_status; in dlm_recover_status()
[all …]
Drcom.c25 static int rcom_response(struct dlm_ls *ls) in rcom_response() argument
27 return test_bit(LSFL_RCOM_READY, &ls->ls_flags); in rcom_response()
30 static int create_rcom(struct dlm_ls *ls, int to_nodeid, int type, int len, in create_rcom() argument
49 rc->rc_header.h_lockspace = ls->ls_global_id; in create_rcom()
56 spin_lock(&ls->ls_recover_lock); in create_rcom()
57 rc->rc_seq = ls->ls_recover_seq; in create_rcom()
58 spin_unlock(&ls->ls_recover_lock); in create_rcom()
65 static void send_rcom(struct dlm_ls *ls, struct dlm_mhandle *mh, in send_rcom() argument
72 static void set_rcom_status(struct dlm_ls *ls, struct rcom_status *rs, in set_rcom_status() argument
82 static void set_rcom_config(struct dlm_ls *ls, struct rcom_config *rf, in set_rcom_config() argument
[all …]
Ddir.c33 int dlm_hash2nodeid(struct dlm_ls *ls, uint32_t hash) in dlm_hash2nodeid() argument
37 if (ls->ls_num_nodes == 1) in dlm_hash2nodeid()
40 node = (hash >> 16) % ls->ls_total_weight; in dlm_hash2nodeid()
41 return ls->ls_node_array[node]; in dlm_hash2nodeid()
50 void dlm_recover_dir_nodeid(struct dlm_ls *ls) in dlm_recover_dir_nodeid() argument
54 down_read(&ls->ls_root_sem); in dlm_recover_dir_nodeid()
55 list_for_each_entry(r, &ls->ls_root_list, res_root_list) { in dlm_recover_dir_nodeid()
56 r->res_dir_nodeid = dlm_hash2nodeid(ls, r->res_hash); in dlm_recover_dir_nodeid()
58 up_read(&ls->ls_root_sem); in dlm_recover_dir_nodeid()
61 int dlm_recover_directory(struct dlm_ls *ls) in dlm_recover_directory() argument
[all …]
Dlock.c16 request_lock(ls, lkb)
17 convert_lock(ls, lkb)
18 unlock_lock(ls, lkb)
19 cancel_lock(ls, lkb)
89 static void do_purge(struct dlm_ls *ls, int nodeid, int pid);
203 static inline void dlm_lock_recovery(struct dlm_ls *ls) in dlm_lock_recovery() argument
205 down_read(&ls->ls_in_recovery); in dlm_lock_recovery()
208 void dlm_unlock_recovery(struct dlm_ls *ls) in dlm_unlock_recovery() argument
210 up_read(&ls->ls_in_recovery); in dlm_unlock_recovery()
213 int dlm_lock_recovery_try(struct dlm_ls *ls) in dlm_lock_recovery_try() argument
[all …]
Drequestqueue.c32 void dlm_add_requestqueue(struct dlm_ls *ls, int nodeid, struct dlm_message *ms) in dlm_add_requestqueue() argument
43 e->recover_seq = ls->ls_recover_seq & 0xFFFFFFFF; in dlm_add_requestqueue()
47 mutex_lock(&ls->ls_requestqueue_mutex); in dlm_add_requestqueue()
48 list_add_tail(&e->list, &ls->ls_requestqueue); in dlm_add_requestqueue()
49 mutex_unlock(&ls->ls_requestqueue_mutex); in dlm_add_requestqueue()
63 int dlm_process_requestqueue(struct dlm_ls *ls) in dlm_process_requestqueue() argument
69 mutex_lock(&ls->ls_requestqueue_mutex); in dlm_process_requestqueue()
72 if (list_empty(&ls->ls_requestqueue)) { in dlm_process_requestqueue()
73 mutex_unlock(&ls->ls_requestqueue_mutex); in dlm_process_requestqueue()
77 e = list_entry(ls->ls_requestqueue.next, struct rq_entry, list); in dlm_process_requestqueue()
[all …]
Dlock.h15 void dlm_dump_rsb_name(struct dlm_ls *ls, char *name, int len);
17 void dlm_receive_message_saved(struct dlm_ls *ls, struct dlm_message *ms,
24 void dlm_scan_rsbs(struct dlm_ls *ls);
25 int dlm_lock_recovery_try(struct dlm_ls *ls);
26 void dlm_unlock_recovery(struct dlm_ls *ls);
27 void dlm_scan_waiters(struct dlm_ls *ls);
28 void dlm_scan_timeout(struct dlm_ls *ls);
29 void dlm_adjust_timeouts(struct dlm_ls *ls);
30 int dlm_master_lookup(struct dlm_ls *ls, int nodeid, char *name, int len,
36 void dlm_recover_purge(struct dlm_ls *ls);
[all …]
/kernel/linux/linux-6.6/fs/nfsd/
Dnfs4layouts.c158 struct nfs4_layout_stateid *ls = layoutstateid(stid); in nfsd4_free_layout_stateid() local
159 struct nfs4_client *clp = ls->ls_stid.sc_client; in nfsd4_free_layout_stateid()
160 struct nfs4_file *fp = ls->ls_stid.sc_file; in nfsd4_free_layout_stateid()
162 trace_nfsd_layoutstate_free(&ls->ls_stid.sc_stateid); in nfsd4_free_layout_stateid()
165 list_del_init(&ls->ls_perclnt); in nfsd4_free_layout_stateid()
169 list_del_init(&ls->ls_perfile); in nfsd4_free_layout_stateid()
172 if (!nfsd4_layout_ops[ls->ls_layout_type]->disable_recalls) in nfsd4_free_layout_stateid()
173 vfs_setlease(ls->ls_file->nf_file, F_UNLCK, NULL, (void **)&ls); in nfsd4_free_layout_stateid()
174 nfsd_file_put(ls->ls_file); in nfsd4_free_layout_stateid()
176 if (ls->ls_recalled) in nfsd4_free_layout_stateid()
[all …]
/kernel/linux/linux-5.10/fs/nfsd/
Dnfs4layouts.c157 struct nfs4_layout_stateid *ls = layoutstateid(stid); in nfsd4_free_layout_stateid() local
158 struct nfs4_client *clp = ls->ls_stid.sc_client; in nfsd4_free_layout_stateid()
159 struct nfs4_file *fp = ls->ls_stid.sc_file; in nfsd4_free_layout_stateid()
161 trace_nfsd_layoutstate_free(&ls->ls_stid.sc_stateid); in nfsd4_free_layout_stateid()
164 list_del_init(&ls->ls_perclnt); in nfsd4_free_layout_stateid()
168 list_del_init(&ls->ls_perfile); in nfsd4_free_layout_stateid()
171 if (!nfsd4_layout_ops[ls->ls_layout_type]->disable_recalls) in nfsd4_free_layout_stateid()
172 vfs_setlease(ls->ls_file->nf_file, F_UNLCK, NULL, (void **)&ls); in nfsd4_free_layout_stateid()
173 nfsd_file_put(ls->ls_file); in nfsd4_free_layout_stateid()
175 if (ls->ls_recalled) in nfsd4_free_layout_stateid()
[all …]
/kernel/linux/linux-5.10/include/crypto/
Dgf128mul.h105 * MS x[0] LS MS x[1] LS
106 * ms ls ms ls ms ls ms ls ms ls ms ls ms ls ms ls
109 * MS x[2] LS MS x[3] LS
110 * ms ls ms ls ms ls ms ls ms ls ms ls ms ls ms ls
115 * MS x[0] LS MS x[1] LS
116 * ms ls ms ls ms ls ms ls ms ls ms ls ms ls ms ls
119 * MS x[2] LS MS x[3] LS
120 * ms ls ms ls ms ls ms ls ms ls ms ls ms ls ms ls
141 MS x[0] LS MS x[1] LS
142 ms ls ms ls ms ls ms ls ms ls ms ls ms ls ms ls
[all …]
/kernel/linux/linux-6.6/include/crypto/
Dgf128mul.h105 * MS x[0] LS MS x[1] LS
106 * ms ls ms ls ms ls ms ls ms ls ms ls ms ls ms ls
109 * MS x[2] LS MS x[3] LS
110 * ms ls ms ls ms ls ms ls ms ls ms ls ms ls ms ls
115 * MS x[0] LS MS x[1] LS
116 * ms ls ms ls ms ls ms ls ms ls ms ls ms ls ms ls
119 * MS x[2] LS MS x[3] LS
120 * ms ls ms ls ms ls ms ls ms ls ms ls ms ls ms ls
141 MS x[0] LS MS x[1] LS
142 ms ls ms ls ms ls ms ls ms ls ms ls ms ls ms ls
[all …]
/kernel/linux/linux-6.6/fs/gfs2/
Dlock_dlm.c263 struct lm_lockstruct *ls = &gl->gl_name.ln_sbd->sd_lockstruct; in gdlm_lock() local
287 error = dlm_lock(ls->ls_dlm, req, &gl->gl_lksb, lkf, strname, in gdlm_lock()
299 struct lm_lockstruct *ls = &sdp->sd_lockstruct; in gdlm_put_lock() local
315 if (test_bit(DFL_UNMOUNT, &ls->ls_recover_flags)) { in gdlm_put_lock()
328 error = dlm_unlock(ls->ls_dlm, gl->gl_lksb.sb_lkid, DLM_LKF_VALBLK, in gdlm_put_lock()
344 struct lm_lockstruct *ls = &gl->gl_name.ln_sbd->sd_lockstruct; in gdlm_cancel() local
345 dlm_unlock(ls->ls_dlm, gl->gl_lksb.sb_lkid, DLM_LKF_CANCEL, NULL, gl); in gdlm_cancel()
491 static void control_lvb_read(struct lm_lockstruct *ls, uint32_t *lvb_gen, in control_lvb_read() argument
495 memcpy(lvb_bits, ls->ls_control_lvb, GDLM_LVB_SIZE); in control_lvb_read()
500 static void control_lvb_write(struct lm_lockstruct *ls, uint32_t lvb_gen, in control_lvb_write() argument
[all …]
/kernel/linux/linux-5.10/fs/gfs2/
Dlock_dlm.c257 struct lm_lockstruct *ls = &gl->gl_name.ln_sbd->sd_lockstruct; in gdlm_lock() local
279 return dlm_lock(ls->ls_dlm, req, &gl->gl_lksb, lkf, strname, in gdlm_lock()
286 struct lm_lockstruct *ls = &sdp->sd_lockstruct; in gdlm_put_lock() local
300 if (test_bit(DFL_UNMOUNT, &ls->ls_recover_flags)) { in gdlm_put_lock()
312 error = dlm_unlock(ls->ls_dlm, gl->gl_lksb.sb_lkid, DLM_LKF_VALBLK, in gdlm_put_lock()
324 struct lm_lockstruct *ls = &gl->gl_name.ln_sbd->sd_lockstruct; in gdlm_cancel() local
325 dlm_unlock(ls->ls_dlm, gl->gl_lksb.sb_lkid, DLM_LKF_CANCEL, NULL, gl); in gdlm_cancel()
471 static void control_lvb_read(struct lm_lockstruct *ls, uint32_t *lvb_gen, in control_lvb_read() argument
475 memcpy(lvb_bits, ls->ls_control_lvb, GDLM_LVB_SIZE); in control_lvb_read()
480 static void control_lvb_write(struct lm_lockstruct *ls, uint32_t lvb_gen, in control_lvb_write() argument
[all …]
/kernel/linux/linux-6.6/arch/sh/lib/
Dmemcpy-sh4.S33 mov.l @(r0,r5),r7 ! 21 LS (2 cycles latency)
40 3: mov.l @(r0,r5),r1 ! 21 LS (latency=2) ! NMLK
55 mov.l r3,@-r0 ! 30 LS
57 3: mov.l @(r0,r5),r1 ! 21 LS (latency=2) ! KLMN
72 mov.l r3,@-r0 ! 30 LS
83 mov.b @(r0,r5),r1 ! 20 LS (latency=2)
87 mov.b r1,@-r0 ! 29 LS
106 mov.l @(r0,r5),r7 ! 21 LS (2 cycles latency)
113 3: mov.l @(r0,r5),r1 ! 21 LS (latency=2) ! NMLK
128 mov.l r3,@-r0 ! 30 LS
[all …]
/kernel/linux/linux-5.10/arch/sh/lib/
Dmemcpy-sh4.S33 mov.l @(r0,r5),r7 ! 21 LS (2 cycles latency)
40 3: mov.l @(r0,r5),r1 ! 21 LS (latency=2) ! NMLK
55 mov.l r3,@-r0 ! 30 LS
57 3: mov.l @(r0,r5),r1 ! 21 LS (latency=2) ! KLMN
72 mov.l r3,@-r0 ! 30 LS
83 mov.b @(r0,r5),r1 ! 20 LS (latency=2)
87 mov.b r1,@-r0 ! 29 LS
106 mov.l @(r0,r5),r7 ! 21 LS (2 cycles latency)
113 3: mov.l @(r0,r5),r1 ! 21 LS (latency=2) ! NMLK
128 mov.l r3,@-r0 ! 30 LS
[all …]

12345678910>>...51