diff options
author | Goldwyn Rodrigues <rgoldwyn@suse.com> | 2017-06-20 15:05:46 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2017-06-20 16:12:03 +0300 |
commit | 03a07c92a9ed9938d828ca7f1d11b8bc63a7bb89 (patch) | |
tree | aced260faa3cdf56d6f1140579ffaf46f8ba9c25 /fs/ext4/file.c | |
parent | a38d1243704f501a4c42de1db1062ff6eba83453 (diff) | |
download | linux-03a07c92a9ed9938d828ca7f1d11b8bc63a7bb89.tar.xz |
block: return on congested block device
A new bio operation flag REQ_NOWAIT is introduced to identify bio's
orignating from iocb with IOCB_NOWAIT. This flag indicates
to return immediately if a request cannot be made instead
of retrying.
Stacked devices such as md (the ones with make_request_fn hooks)
currently are not supported because it may block for housekeeping.
For example, an md can have a part of the device suspended.
For this reason, only request based devices are supported.
In the future, this feature will be expanded to stacked devices
by teaching them how to handle the REQ_NOWAIT flags.
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Goldwyn Rodrigues <rgoldwyn@suse.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'fs/ext4/file.c')
0 files changed, 0 insertions, 0 deletions