Skip to contentSkip to conversation

ceph: switch TASK_INTERRUPTIBLE to TASK_KILLABLE

PATCH In review Xiubo Li 2 participants 2 messages May 18, 2022 Ceph client

lore
Share & tools
lore

Xiubo Li

author
#0 lore raw

PATCH 1/1 ceph: switch TASK_INTERRUPTIBLE to TASK_KILLABLE

If the task is placed in the TASK_INTERRUPTIBLE state it will sleep until either something explicitly wakes it up, or a non-masked signal is received. Switch to TASK_KILLABLE to avoid the noises.

Cc Matthew Wilcox <[email protected]>
---
 fs/ceph/mds_client.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/ceph/mds_client.h +1 -1
index d1ae679c52c3..f72f40b3e26b 100644
@@ -579,7 +579,7 @@ static inline int ceph_wait_on_async_create(struct inode *inode)
 	struct ceph_inode_info *ci = ceph_inode(inode);
 
 	return wait_on_bit(&ci->i_ceph_flags, CEPH_ASYNC_CREATE_BIT,
-			   TASK_INTERRUPTIBLE);
+			   TASK_KILLABLE);
 }
 
 extern int ceph_wait_on_conflict_unlink(struct dentry *dentry);
Signature · 1 line
2.36.0.rc1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 15 lines · Xiubo Li

If the task is placed in the TASK_INTERRUPTIBLE state it will sleep until either something explicitly wakes it up, or a non-masked signal is received. Switch to TASK_KILLABLE to avoid the noises.

Cc Matthew Wilcox <[email protected]>
---
 fs/ceph/mds_client.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/ceph/mds_client.h +0 -0
index d1ae679c52c3..f72f40b3e26b 100644

fs/ceph/mds_client.h static inline int ceph_wait_on_async_create(struct inode *inode) · line 585

Quoted 8 lines
fs/ceph/mds_client.h +1 -1
@@ -579,7 +579,7 @@ static inline int ceph_wait_on_async_create(struct inode *inode)
 	struct ceph_inode_info *ci = ceph_inode(inode);
 
 	return wait_on_bit(&ci->i_ceph_flags, CEPH_ASYNC_CREATE_BIT,
-			   TASK_INTERRUPTIBLE);
+			   TASK_KILLABLE);
 }
 
 extern int ceph_wait_on_conflict_unlink(struct dentry *dentry);