diff options
author | Hannes Reinecke <[email protected]> | 2022-05-24 07:56:30 +0200 |
---|---|---|
committer | Jens Axboe <[email protected]> | 2022-05-27 20:38:17 -0600 |
commit | 98d40e76652e9aeb3aec4065f600d633ed335e94 (patch) | |
tree | eb5e879fc98571e1d791726027f3e230a5534d50 | |
parent | 403d50341cce6b5481a92eb481e6df60b1f49b55 (diff) |
block: document BLK_STS_AGAIN usage
BLK_STS_AGAIN should only be used if RQF_NOWAIT is set and the bio
would block. So we'd better document that to avoid accidental misuse.
Signed-off-by: Hannes Reinecke <[email protected]>
Reviewed-by: Chaitanya Kulkarni <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jens Axboe <[email protected]>
-rw-r--r-- | include/linux/blk_types.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/blk_types.h b/include/linux/blk_types.h index 40e815400611..8b38367d1bc7 100644 --- a/include/linux/blk_types.h +++ b/include/linux/blk_types.h @@ -105,6 +105,10 @@ typedef u16 blk_short_t; /* hack for device mapper, don't use elsewhere: */ #define BLK_STS_DM_REQUEUE ((__force blk_status_t)11) +/* + * BLK_STS_AGAIN should only be returned if RQF_NOWAIT is set + * and the bio would block (cf bio_wouldblock_error()) + */ #define BLK_STS_AGAIN ((__force blk_status_t)12) /* |