diff options
Diffstat (limited to 'fs/xfs/kmem.c')
| -rw-r--r-- | fs/xfs/kmem.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/fs/xfs/kmem.c b/fs/xfs/kmem.c index a7a3a63bb360..686ba6fb20dd 100644 --- a/fs/xfs/kmem.c +++ b/fs/xfs/kmem.c | |||
| @@ -55,8 +55,9 @@ kmem_alloc(size_t size, xfs_km_flags_t flags) | |||
| 55 | return ptr; | 55 | return ptr; |
| 56 | if (!(++retries % 100)) | 56 | if (!(++retries % 100)) |
| 57 | xfs_err(NULL, | 57 | xfs_err(NULL, |
| 58 | "possible memory allocation deadlock in %s (mode:0x%x)", | 58 | "%s(%u) possible memory allocation deadlock size %u in %s (mode:0x%x)", |
| 59 | __func__, lflags); | 59 | current->comm, current->pid, |
| 60 | (unsigned int)size, __func__, lflags); | ||
| 60 | congestion_wait(BLK_RW_ASYNC, HZ/50); | 61 | congestion_wait(BLK_RW_ASYNC, HZ/50); |
| 61 | } while (1); | 62 | } while (1); |
| 62 | } | 63 | } |
| @@ -120,8 +121,9 @@ kmem_zone_alloc(kmem_zone_t *zone, xfs_km_flags_t flags) | |||
| 120 | return ptr; | 121 | return ptr; |
| 121 | if (!(++retries % 100)) | 122 | if (!(++retries % 100)) |
| 122 | xfs_err(NULL, | 123 | xfs_err(NULL, |
| 123 | "possible memory allocation deadlock in %s (mode:0x%x)", | 124 | "%s(%u) possible memory allocation deadlock in %s (mode:0x%x)", |
| 124 | __func__, lflags); | 125 | current->comm, current->pid, |
| 126 | __func__, lflags); | ||
| 125 | congestion_wait(BLK_RW_ASYNC, HZ/50); | 127 | congestion_wait(BLK_RW_ASYNC, HZ/50); |
| 126 | } while (1); | 128 | } while (1); |
| 127 | } | 129 | } |
