summaryrefslogtreecommitdiff
path: root/xmalloc.c
AgeCommit message (Expand)AuthorFilesLines
2016-04-17build: fix compilation warnings with _GNU_SOURCEarch3y1-2/+3
2015-02-05xmalloc: Make xrealloc() arguments conform to realloc()Tobias Klauser1-8/+5
2015-02-05xmalloc: Remove unnecessary NULL check before realloc()Tobias Klauser1-5/+1
2014-06-25xmalloc: Add and use xcallocTobias Klauser1-0/+15
2013-06-12ioops: misc: add dup{,2}_or_die to ioopsDaniel Borkmann1-8/+0
2013-06-04xutils: eliminate xutils, move rest to epoll2Daniel Borkmann1-1/+0
2013-06-04xutils: break out string handling and lockingDaniel Borkmann1-0/+1
2013-03-15all: import netsniff-ng 0.5.8-rc0 sourceDaniel Borkmann1-0/+151
b6148f4e07853b876ef73bc69ca'>diff)
xfs: buffer ->bi_end_io function requires irq-safe lock
Reports have surfaced of a lockdep splat complaining about an irq-safe -> irq-unsafe locking order in the xfs_buf_bio_end_io() bio completion handler. This only occurs when I/O errors are present because bp->b_lock is only acquired in this context to protect setting an error on the buffer. The problem is that this lock can be acquired with the (request_queue) q->queue_lock held. See scsi_end_request() or ata_qc_schedule_eh(), for example. Replace the locked test/set of b_io_error with a cmpxchg() call. This eliminates the need for the lock and thus the lock ordering problem goes away. Signed-off-by: Brian Foster <bfoster@redhat.com> Reviewed-by: Dave Chinner <dchinner@redhat.com> Signed-off-by: Dave Chinner <david@fromorbit.com>
Diffstat (limited to 'Documentation')