]> git.baikalelectronics.ru Git - kernel.git/commit
ore: Support for short read/writes
authorBoaz Harrosh <bharrosh@panasas.com>
Sat, 27 Aug 2011 04:04:52 +0000 (21:04 -0700)
committerBoaz Harrosh <bharrosh@panasas.com>
Fri, 14 Oct 2011 16:54:40 +0000 (18:54 +0200)
commit6d5c34d5163f946a9d88da0422e785d9165612e3
tree882d91f165dad978295f14fb8226a1296ca72073
parent85c9562e4f621455d6e476000104f96132aab8a5
ore: Support for short read/writes

Memory conditions and max_bio constraints might cause us to
not comply to the full length of the requested IO. Instead of
failing the complete IO we can issue a shorter read/write and
report how much was actually executed in the ios->length
member.

All users must check ios->length at IO_done or upon return of
ore_read/write and re-issue the reminder of the bytes. Because
other wise there is no error returned like before.

This is part of the effort to support the pnfs-obj layout driver.

Signed-off-by: Boaz Harrosh <bharrosh@panasas.com>
fs/exofs/ore.c