aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorNicholas Bellinger <[email protected]>2012-05-16 23:05:26 +0000
committerNicholas Bellinger <[email protected]>2012-05-17 19:02:43 +0000
commitcd9323fd68aee3c1c6b5b21e5746c9d1b586fb58 (patch)
treea1e5045e68a8a081a2e932846a0bf951128d93db /net/unix/af_unix.c
parenttarget: Fix SPC-2 RELEASE bug for multi-session iSCSI client setups (diff)
downloadkernel-cd9323fd68aee3c1c6b5b21e5746c9d1b586fb58.tar.gz
kernel-cd9323fd68aee3c1c6b5b21e5746c9d1b586fb58.zip
target: Fix bug in handling of FILEIO + block_device resize ops
This patch fixes a bug in the handling of FILEIO w/ underlying block_device resize operations where the original fd_dev->fd_dev_size was incorrectly being used in fd_get_blocks() for READ_CAPACITY response payloads. This patch avoids using fd_dev->fd_dev_size for FILEIO devices with an underlying block_device, and instead changes fd_get_blocks() to get the sector count directly from i_size_read() as recommended by hch. Reported-by: Christoph Hellwig <[email protected]> Cc: <[email protected]> Signed-off-by: Nicholas Bellinger <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions