Date: Sat, 13 Feb 2010 10:34:50 +0000 (UTC) From: Konstantin Belousov <kib@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sys/ufs/ffs ffs_alloc.c Message-ID: <201002131035.o1DAZ3rr003466@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
kib 2010-02-13 10:34:50 UTC FreeBSD src repository Modified files: sys/ufs/ffs ffs_alloc.c Log: SVN rev 203818 on 2010-02-13 10:34:50Z by kib When ffs_realloccg() failed to allocate bigger fragment and, because pending blocks are scheduled for removal, goes to retry the (re)allocation, clear the bp pointer. It might happen that meantime free space is really exhausted and we are entering nospace: label without bread()ing buffer, causing stale bp value to be brelse()d again. Tested by: pho (Producing a scenario to reliably reproduce the race appeared to be much harder then fixing the bug) MFC after: 1 week Revision Changes Path 1.157 +3 -1 src/sys/ufs/ffs/ffs_alloc.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201002131035.o1DAZ3rr003466>