diff options
| author | Nicholas Bellinger <[email protected]> | 2015-02-12 02:34:40 +0000 |
|---|---|---|
| committer | Nicholas Bellinger <[email protected]> | 2015-02-12 20:24:12 +0000 |
| commit | f161d4b44d7cc1dc66b53365215227db356378b1 (patch) | |
| tree | fc7a5791374458619b4cd7aa8de799927de84617 /lib/string_helpers.c | |
| parent | iscsi-target: Drop problematic active_ts_list usage (diff) | |
| download | kernel-f161d4b44d7cc1dc66b53365215227db356378b1.tar.gz kernel-f161d4b44d7cc1dc66b53365215227db356378b1.zip | |
target: Fix PR_APTPL_BUF_LEN buffer size limitation
This patch addresses the original PR_APTPL_BUF_LEN = 8k limitiation
for write-out of PR APTPL metadata that Martin has recently been
running into.
It changes core_scsi3_update_and_write_aptpl() to use vzalloc'ed
memory instead of kzalloc, and increases the default hardcoded
length to 256k.
It also adds logic in core_scsi3_update_and_write_aptpl() to double
the original length upon core_scsi3_update_aptpl_buf() failure, and
retries until the vzalloc'ed buffer is large enough to accommodate
the outgoing APTPL metadata.
Reported-by: Martin Svec <[email protected]>
Cc: [email protected]
Signed-off-by: Nicholas Bellinger <[email protected]>
Diffstat (limited to 'lib/string_helpers.c')
0 files changed, 0 insertions, 0 deletions
