]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-client.git/commitdiff
use spinlock bh?
authorAlex Markuze <amarkuze@redhat.com>
Wed, 19 Mar 2025 12:17:17 +0000 (12:17 +0000)
committerAlex Markuze <amarkuze@redhat.com>
Wed, 19 Mar 2025 12:17:17 +0000 (12:17 +0000)
fs/ceph/debugfs.c
net/ceph/ceph_san_logger.c

index 5a7d287474af5607f9eac5ebc06f3320edbf3352..3c0ea06c076b21e8182bee0bb5f7d1ed5ef59cd1 100644 (file)
@@ -421,7 +421,7 @@ static int ceph_san_tls_show(struct seq_file *s, void *p)
                char *comm = ctx->comm;
 
                /* Lock the pagefrag before accessing entries */
-               spin_lock(&ctx->pf.lock);
+               spin_lock_bh(&ctx->pf.lock);
 
                /* Iterate through all log entries in this context */
                while ((entry = ceph_san_log_iter_next(&iter)) != NULL) {
@@ -445,7 +445,7 @@ static int ceph_san_tls_show(struct seq_file *s, void *p)
                }
 
                /* Unlock the pagefrag after we're done with this context */
-               spin_unlock(&ctx->pf.lock);
+               spin_unlock_bh(&ctx->pf.lock);
        }
 
        spin_unlock(&g_logger.lock);
index 39767326601e9a3b7bd64634989f94cb2f14e47c..384d5edee2ce8a17e033965dc649317b3794d853 100644 (file)
@@ -139,7 +139,7 @@ void ceph_san_log(const char *file, const char *func, unsigned int line, const c
 
     needed_size = sizeof(*entry) + len + 1;
     /* Allocate entry from pagefrag - We need a spinlock here to protect access iterators */
-    spin_lock(&ctx->pf.lock);
+    spin_lock_bh(&ctx->pf.lock);
     alloc = cephsan_pagefrag_alloc(&ctx->pf, needed_size);
     int loop_count = 0;
     while (!alloc) {
@@ -183,7 +183,7 @@ void ceph_san_log(const char *file, const char *func, unsigned int line, const c
         entry->buffer = (char *)(entry + 1);
     }
     entry->len = cephsan_pagefrag_get_alloc_size(alloc);
-    spin_unlock(&ctx->pf.lock);
+    spin_unlock_bh(&ctx->pf.lock);
 
     /* Copy to entry buffer */
     memcpy(entry->buffer, buf, len + 1);