aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/mutex-design.txt
diff options
context:
space:
mode:
authorSteffen Maier <maier@linux.vnet.ibm.com>2013-04-26 17:34:54 +0200
committerJames Bottomley <JBottomley@Parallels.com>2013-05-31 16:32:38 -0700
commit9edf7d75ee5f21663a0183d21f702682d0ef132f (patch)
treee7278d1b88a39142b094fb7ce2aca8402f9cf177 /Documentation/mutex-design.txt
parent663e0890e31cb85f0cca5ac1faaee0d2d52880b5 (diff)
downloadkernel_goldelico_gta04-9edf7d75ee5f21663a0183d21f702682d0ef132f.zip
kernel_goldelico_gta04-9edf7d75ee5f21663a0183d21f702682d0ef132f.tar.gz
kernel_goldelico_gta04-9edf7d75ee5f21663a0183d21f702682d0ef132f.tar.bz2
[SCSI] zfcp: status read buffers on first adapter open with link down
Commit 64deb6efdc5504ce97b5c1c6f281fffbc150bd93 "[SCSI] zfcp: Use status_read_buf_num provided by FCP channel" started using a value returned by the channel but only evaluated the value if the fabric link is up. Commit 8d88cf3f3b9af4713642caeb221b6d6a42019001 "[SCSI] zfcp: Update status read mempool" introduced mempool resizings based on the above value. On setting an FCP device online for the very first time since boot, a new zeroed adapter object is allocated. If the link is down, the number of status read requests remains zero. Since just the config data exchange is incomplete, we proceed with adapter open recovery. However, we unconditionally call mempool_resize with adapter->stat_read_buf_num == 0 in this case. This causes a kernel message "kernel BUG at mm/mempool.c:131!" in process "zfcperp<FCP-device-bus-ID>" with last function mempool_resize in Krnl PSW and zfcp_erp_thread in the Call Trace. Don't evaluate channel values which are invalid on link down. The number of status read requests is always valid, evaluated, and set to a positive minimum greater than zero. The adapter open recovery can proceed and the channel has status read buffers to inform us on a future link up event. While we are not aware of any other code path that could result in mempool resize attempts of size zero, we still also initialize the number of status read buffers to be posted to a static minimum number on adapter object allocation. Signed-off-by: Steffen Maier <maier@linux.vnet.ibm.com> Cc: <stable@vger.kernel.org> #2.6.35+ Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'Documentation/mutex-design.txt')
0 files changed, 0 insertions, 0 deletions