Skip to content

Commit

Permalink
Fix irq flags.
Browse files Browse the repository at this point in the history
  • Loading branch information
dacut committed Jun 16, 2016
1 parent d5fabae commit a4d6340
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions c++-client/s3.cc
Original file line number Diff line number Diff line change
Expand Up @@ -860,9 +860,9 @@ void UBDS3Volume::readBlock(
ios_base::out | ios_base::app);

fp << std::this_thread::get_id()
<< " readBlock " << block_id << '\n';
<< " readBlock " << block_id << " (" << key << ")\n";
for (size_t i = 0; i < m_block_size; i += 16) {
fp << setw(8) << setfill('0') << hex << i;
fp << setw(8) << setfill('0') << hex << (i + m_block_size * block_id);

for (size_t j = i; j < i + 16; ++j) {
fp << ' ' << setw(2) << setfill('0') << hex
Expand Down Expand Up @@ -934,9 +934,9 @@ void UBDS3Volume::writeBlock(
auto fp = ofstream("/tmp/ubds3.audit", ios_base::out | ios_base::app);

fp << std::this_thread::get_id()
<< " writeBlock " << block_id << '\n';
<< " writeBlock " << block_id << " (" << key << ")\n";
for (size_t i = 0; i < m_block_size; i += 16) {
fp << setw(8) << setfill('0') << hex << i;
fp << setw(8) << setfill('0') << hex << (i + m_block_size * block_id);

for (size_t j = i; j < i + 16; ++j) {
fp << ' ' << setw(2) << setfill('0') << hex
Expand Down
2 changes: 1 addition & 1 deletion kernel/ublkdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -1218,7 +1218,7 @@ static long ubdctl_ioctl_putreply(
dest = bvec_kmap_irq(ubd_bvptr(bvec), &bvec_irq_flags);
src_len = ubd_bvptr(bvec)->bv_len;
n_uncopied = copy_from_user(dest, src, src_len);
bvec_kunmap_irq(dest, &lock_flags);
bvec_kunmap_irq(dest, &bvec_irq_flags);

if (n_uncopied > 0) {
ubd_warning("Failed to copy %ld bytes of %u total bytes from "
Expand Down

0 comments on commit a4d6340

Please sign in to comment.