diff options
| author | Christoph Hellwig <[email protected]> | 2008-12-17 17:27:36 +0000 |
|---|---|---|
| committer | Lachlan McIlroy <[email protected]> | 2008-12-22 07:02:01 +0000 |
| commit | efc557570dc99b46e46a7be51c3c7402b485e829 (patch) | |
| tree | faba8c63e6bcf798ab76f7da1fcb035ece445700 /drivers/message/fusion/lsi/mpi_raid.h | |
| parent | [XFS] Fix speculative allocation beyond eof (diff) | |
| download | kernel-efc557570dc99b46e46a7be51c3c7402b485e829.tar.gz kernel-efc557570dc99b46e46a7be51c3c7402b485e829.zip | |
[XFS] avoid memory allocations in xfs_fs_vcmn_err
xfs_fs_vcmn_err can be called under a spinlock, but does a sleeping memory
allocation to create buffer for it's internal sprintf. Fortunately it's
the only caller of icmn_err, so we can merge the two and have one single
static buffer and spinlock protecting it. While we're at it make sure
we proper __attribute__ format annotations so that the compiler can detect
mismatched format strings.
Reported-by: Alexander Beregalov <[email protected]>
Signed-off-by: Christoph Hellwig <[email protected]>
Reviewed-by: Eric Sandeen <[email protected]>
Signed-off-by: Lachlan McIlroy <[email protected]>
Diffstat (limited to 'drivers/message/fusion/lsi/mpi_raid.h')
0 files changed, 0 insertions, 0 deletions
